@staticmethod<EOL><INDENT>def factory(cfg, login, pswd, request_type):<DEDENT>
if request_type == ImportRequest.TYPE_GET_LIST:<EOL><INDENT>return ListImportRequest(cfg, login, pswd)<EOL><DEDENT>elif request_type == ImportRequest.TYPE_GET_SINGLE_OBJECT:<EOL><INDENT>return SingleObjectImportRequest(cfg, login, pswd)<EOL><DEDENT>else:<EOL><INDENT>raise NotImplementedError('<STR_LIT>'.format(request_type))<EOL><DEDENT>
Instantiate ImportRequest
:param cfg: request configuration, should consist of request description (url and parameters) and response for parsing result
:param login:
:param pswd:
:param request_type: TYPE_GET_SINGLE_OBJECT or TYPE_GET_LIST = 'list'
:return: ImportRequest instance