private void updateBackendVolume(BlockConsistencyGroup cg,Volume backendVolume,DbClient dbClient){
  if (backendVolume != null) {
    String backendCG=cg.getCgNameOnStorageSystem(backendVolume.getStorageController());
    if (backendCG != null && !backendCG.isEmpty()) {
      log.info("updating the volume {} replicationgroup {}",backendVolume.getLabel(),backendCG);
      backendVolume.setReplicationGroupInstance(backendCG);
      dbClient.updateObject(backendVolume);
    }
  }
}

private void updateBackendVolume ( BlockConsistencyGroup cg , Volume backendVolume , DbClient dbClient ) { if ( backendVolume != null ) { String backendCG = cg . getCgNameOnStorageSystem ( backendVolume . getStorageController ( ) ) ; if ( backendCG != null && ! backendCG . isEmpty ( ) ) { log . info ( "updating the volume {} replicationgroup {}" , backendVolume . getLabel ( ) , backendCG ) ; backendVolume . setReplicationGroupInstance ( backendCG ) ; dbClient . updateObject ( backendVolume ) ; } } }
update the backend volume with the backend replication group name
