private UnManagedConsistencyGroup createUnManagedCG(VolumeConsistencyGroup driverCG,com.emc.storageos.db.client.model.StorageSystem storageSystem,DbClient dbClient){
  UnManagedConsistencyGroup unManagedCG=new UnManagedConsistencyGroup();
  unManagedCG.setId(URIUtil.createId(UnManagedConsistencyGroup.class));
  unManagedCG.setLabel(driverCG.getDeviceLabel());
  unManagedCG.setName(driverCG.getDeviceLabel());
  String unManagedCGNativeGuid=NativeGUIDGenerator.generateNativeGuidForCG(storageSystem.getNativeGuid(),driverCG.getNativeId());
  unManagedCG.setNativeGuid(unManagedCGNativeGuid);
  unManagedCG.setNativeId(driverCG.getNativeId());
  unManagedCG.setStorageSystemUri(storageSystem.getId());
  dbClient.createObject(unManagedCG);
  return unManagedCG;
}

private UnManagedConsistencyGroup createUnManagedCG ( VolumeConsistencyGroup driverCG , com . emc . storageos . db . client . model . StorageSystem storageSystem , DbClient dbClient ) { UnManagedConsistencyGroup unManagedCG = new UnManagedConsistencyGroup ( ) ; unManagedCG . setId ( URIUtil . createId ( UnManagedConsistencyGroup . class ) ) ; unManagedCG . setLabel ( driverCG . getDeviceLabel ( ) ) ; unManagedCG . setName ( driverCG . getDeviceLabel ( ) ) ; String unManagedCGNativeGuid = NativeGUIDGenerator . generateNativeGuidForCG ( storageSystem . getNativeGuid ( ) , driverCG . getNativeId ( ) ) ; unManagedCG . setNativeGuid ( unManagedCGNativeGuid ) ; unManagedCG . setNativeId ( driverCG . getNativeId ( ) ) ; unManagedCG . setStorageSystemUri ( storageSystem . getId ( ) ) ; dbClient . createObject ( unManagedCG ) ; return unManagedCG ; }
create unmanaged cg for a given driver cg .
