* @throws EMFUserError the EMF user error
*/
public static SbiObjMetadata modifyExistingSbiObjMetadata(SbiObjMetadata exportedObjMetadata, Session sessionCurrDB,
Integer existingId, MetadataAssociations metaAss, ImporterMetadata importer) throws EMFUserError {
logger.debug("IN");
SbiObjMetadata existingObjMetadata = null;
try {
existingObjMetadata= (SbiObjMetadata) sessionCurrDB.load(SbiObjMetadata.class, existingId);
existingObjMetadata.setName(exportedObjMetadata.getName());
existingObjMetadata.setDescription(exportedObjMetadata.getDescription());
existingObjMetadata.setCreationDate(exportedObjMetadata.getCreationDate());
// overwrite existging entities (maybe create a function speciic for domains, maybe not)
entitiesAssociationsSbiObjMetadata(exportedObjMetadata, existingObjMetadata, sessionCurrDB, metaAss, importer);
}