def _get_asset_content(self, asset_id, asset_content_type_str=None, asset_content_id=None):
rm = self.my_osid_object._get_provider_manager('<STR_LIT>')<EOL>if '<STR_LIT>' in self.my_osid_object._my_map:<EOL><INDENT>if self.my_osid_object._proxy is not None:<EOL><INDENT>als = rm.get_asset_lookup_session_for_repository(<EOL>Id(self.my_osid_object._my_map['<STR_LIT>'][<NUM_LIT:0>]),<EOL>self.my_osid_object._proxy)<EOL><DEDENT>else:<EOL><INDENT>als = rm.get_asset_lookup_session_for_repository(<EOL>Id(self.my_osid_object._my_map['<STR_LIT>'][<NUM_LIT:0>]))<EOL><DEDENT><DEDENT>elif '<STR_LIT>' in self.my_osid_object._my_map:<EOL><INDENT>if self.my_osid_object._proxy is not None:<EOL><INDENT>als = rm.get_asset_lookup_session_for_repository(<EOL>Id(self.my_osid_object._my_map['<STR_LIT>'][<NUM_LIT:0>]),<EOL>self.my_osid_object._proxy)<EOL><DEDENT>else:<EOL><INDENT>als = rm.get_asset_lookup_session_for_repository(<EOL>Id(self.my_osid_object._my_map['<STR_LIT>'][<NUM_LIT:0>]))<EOL><DEDENT><DEDENT>elif '<STR_LIT>' in self.my_osid_object._my_map:<EOL><INDENT>if self.my_osid_object._proxy is not None:<EOL><INDENT>als = rm.get_asset_lookup_session_for_repository(<EOL>Id(self.my_osid_object._my_map['<STR_LIT>'][<NUM_LIT:0>]),<EOL>self.my_osid_object._proxy)<EOL><DEDENT>else:<EOL><INDENT>als = rm.get_asset_lookup_session_for_repository(<EOL>Id(self.my_osid_object._my_map['<STR_LIT>'][<NUM_LIT:0>]))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise KeyError<EOL><DEDENT>if asset_content_id is not None:<EOL><INDENT>ac_list = als.get_asset(asset_id).get_asset_contents()<EOL>for ac in ac_list:<EOL><INDENT>if str(ac.ident) == str(asset_content_id):<EOL><INDENT>return ac<EOL><DEDENT><DEDENT><DEDENT>if not asset_content_type_str:<EOL><INDENT>return next(als.get_asset(asset_id).get_asset_contents())  <EOL><DEDENT>else:<EOL><INDENT>if isinstance(asset_content_type_str, Type):<EOL><INDENT>asset_content_type_str = str(asset_content_type_str)<EOL><DEDENT>for ac in als.get_asset(asset_id).get_asset_contents():<EOL><INDENT>if ac.get_genus_type() == Type(asset_content_type_str):<EOL><INDENT>return ac<EOL><DEDENT><DEDENT><DEDENT>raise NotFound()<EOL>
stub