def payload_class_for_element_name(element_name):
logger.debug("<STR_LIT>".format(<EOL>element_name))<EOL>logger.debug("<STR_LIT>".format(STANZA_PAYLOAD_CLASSES))<EOL>if element_name in STANZA_PAYLOAD_CLASSES:<EOL><INDENT>return STANZA_PAYLOAD_CLASSES[element_name]<EOL><DEDENT>else:<EOL><INDENT>return XMLPayload<EOL><DEDENT>
Return a payload class for given element name.