def __init__(self, elem):
self.name = elem.tag.split('<STR_LIT:}>')[<NUM_LIT:1>]          <EOL>self.methods = []<EOL>for resource in elem.findall(ns('<STR_LIT>')+ns('<STR_LIT>')+ns('<STR_LIT>')+ns('<STR_LIT>')):<EOL><INDENT>url = resource.attrib['<STR_LIT>']<EOL>self.methods.append({'<STR_LIT:type>': '<STR_LIT>', '<STR_LIT:url>': url})<EOL><DEDENT>for resource in elem.findall(ns('<STR_LIT>')+ns('<STR_LIT>')+ns('<STR_LIT>')+ns('<STR_LIT>')):<EOL><INDENT>url = resource.attrib['<STR_LIT>']<EOL>self.methods.append({'<STR_LIT:type>': '<STR_LIT>', '<STR_LIT:url>': url})<EOL><DEDENT>
.