for (Object o : content) {
((Content)o).detach();
}
final Element metadata = getSampleMetadataXml().setContent(content);
ServiceContext context = createServiceContext();
context.setAsThreadLocal();
loginAsAdmin(context);
_settingManager.setValue(SettingManager.SYSTEM_XLINKRESOLVER_ENABLE, true);
String schema = _dataManager.autodetectSchema(metadata);
String uuid = UUID.randomUUID().toString();
int owner = context.getUserSession().getUserIdAsInt();
String groupOwner = "" + ReservedGroup.intranet.getId();
String source = _settingManager.getSiteId();
String metadataType = MetadataType.METADATA.codeString;
String changeDate;
String createDate = changeDate = new ISODate().getDateAndTime();