public static ExportMask createExportMask(DbClient dbClient,ExportGroup exportGroup,URI sdUri,String maskName) throws DatabaseException {
  ExportMask exportMask=new ExportMask();
  exportMask.setId(URIUtil.createId(ExportMask.class));
  exportMask.setMaskName(maskName);
  exportMask.setStorageDevice(sdUri);
  dbClient.createObject(exportMask);
  exportGroup.addExportMask(exportMask.getId());
  dbClient.updateObject(exportGroup);
  return exportMask;
}

public static ExportMask createExportMask ( DbClient dbClient , ExportGroup exportGroup , URI sdUri , String maskName ) throws DatabaseException { ExportMask exportMask = new ExportMask ( ) ; exportMask . setId ( URIUtil . createId ( ExportMask . class ) ) ; exportMask . setMaskName ( maskName ) ; exportMask . setStorageDevice ( sdUri ) ; dbClient . createObject ( exportMask ) ; exportGroup . addExportMask ( exportMask . getId ( ) ) ; dbClient . updateObject ( exportGroup ) ; return exportMask ; }
create an export mask object . the actual mask is created at the array by the controller service .
