def _add_asset_content(self,<EOL>asset_id,<EOL>asset_data=None,<EOL>asset_url=None,<EOL>asset_content_type=None,<EOL>asset_label=None):
rm = self.my_osid_object_form._get_provider_manager('<STR_LIT>')<EOL>try:<EOL><INDENT>catalog_id = self.my_osid_object_form._catalog_id<EOL><DEDENT>except AttributeError:<EOL><INDENT>catalog_id = Id(self.my_osid_object_form._my_map['<STR_LIT>'][<NUM_LIT:0>])<EOL><DEDENT>try:<EOL><INDENT>aas = rm.get_asset_admin_session_for_repository(<EOL>catalog_id,<EOL>self.my_osid_object_form._proxy)<EOL><DEDENT>except (TypeError, NullArgument):  <EOL><INDENT>aas = rm.get_asset_admin_session_for_repository(<EOL>catalog_id)<EOL><DEDENT>asset_content_type_list = []<EOL>try:<EOL><INDENT>config = self.my_osid_object_form._runtime.get_configuration()<EOL>parameter_id = Id('<STR_LIT>')<EOL>asset_content_type_list.append(<EOL>config.get_value_by_parameter(parameter_id).get_type_value())<EOL><DEDENT>except (AttributeError, KeyError):<EOL><INDENT>pass<EOL><DEDENT>acfc = aas.get_asset_content_form_for_create(asset_id,<EOL>asset_content_type_list)<EOL>if asset_content_type is not None:<EOL><INDENT>acfc.set_genus_type(asset_content_type)<EOL><DEDENT>if asset_label is not None:<EOL><INDENT>acfc.display_name = str(asset_label)<EOL><DEDENT>if asset_data:<EOL><INDENT>acfc.set_data(asset_data)<EOL><DEDENT>if asset_url:<EOL><INDENT>acfc.set_url(asset_url)<EOL><DEDENT>ac = aas.create_asset_content(acfc)<EOL>return asset_id, ac.ident<EOL>
stub