'Configure CodeResponse from XML. Supports both CodeResponse and ExternalResponse XML
TODO: Determines whether in synchronous or asynchronous (queued) mode'

def setup_response(self):

    xml = self.xml
    self.url = xml.get('url', None)
    if (self.capa_system.xqueue is not None):
        default_queuename = self.capa_system.xqueue['default_queuename']
    else:
        default_queuename = None
    self.queue_name = xml.get('queuename', default_queuename)
    codeparam = self.xml.find('codeparam')
    assert (codeparam is not None), 'Unsupported    old    format!    <coderesponse>    without    <codeparam>'
    self._parse_coderesponse_xml(codeparam)
