def _convert_etree_element_to_subscription(entry_element):
subscription = Subscription()<EOL>subscription_element = entry_element.find('<STR_LIT>', _etree_sb_feed_namespaces)<EOL>if subscription_element is not None:<EOL><INDENT>mappings = [<EOL>('<STR_LIT>', '<STR_LIT>', None),<EOL>('<STR_LIT>', '<STR_LIT>', _parse_bool),<EOL>('<STR_LIT>', '<STR_LIT>', None),<EOL>('<STR_LIT>', '<STR_LIT>', _parse_bool),  <EOL>('<STR_LIT>', '<STR_LIT>', _parse_bool),<EOL>('<STR_LIT>', '<STR_LIT>', _parse_bool),<EOL>('<STR_LIT>', '<STR_LIT>', int),<EOL>('<STR_LIT>', '<STR_LIT>', int),<EOL>]<EOL>for mapping in mappings:<EOL><INDENT>_read_etree_element(subscription_element, mapping[<NUM_LIT:0>], subscription, mapping[<NUM_LIT:1>], mapping[<NUM_LIT:2>])<EOL><DEDENT><DEDENT>for name, value in _ETreeXmlToObject.get_entry_properties_from_element(<EOL>entry_element, True, '<STR_LIT>').items():<EOL><INDENT>setattr(subscription, name, value)<EOL><DEDENT>return subscription<EOL>
Converts entry element to subscription

    The xml format for subscription:
<entry xmlns='http://www.w3.org/2005/Atom'>
    <content type='application/xml'>
    <SubscriptionDescription
        xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
        xmlns="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect">
        <LockDuration>PT5M</LockDuration>
        <RequiresSession>false</RequiresSession>
        <DefaultMessageTimeToLive>P10675199DT2H48M5.4775807S</DefaultMessageTimeToLive>
        <DeadLetteringOnMessageExpiration>false</DeadLetteringOnMessageExpiration>
        <DeadLetteringOnFilterEvaluationExceptions>true</DeadLetteringOnFilterEvaluationExceptions>
    </SubscriptionDescription>
    </content>
</entry>