def get_agent_id(agent_id):
if '<STR_LIT>' not in agent_id:<EOL><INDENT>agent_id += '<STR_LIT>'<EOL><DEDENT>test_request = SimpleRequest(agent_id)<EOL>condition = PROXY_SESSION.get_proxy_condition()<EOL>condition.set_http_request(test_request)<EOL>proxy = PROXY_SESSION.get_proxy(condition)<EOL>resm = RUNTIME.get_service_manager('<STR_LIT>',<EOL>implementation='<STR_LIT>',<EOL>proxy=proxy)<EOL>return resm.effective_agent_id<EOL>
Not a great hack...depends too much on internal DLKit knowledge