private boolean canConsistencyGroupBeModified(BlockConsistencyGroup consistencyGroup,List<Volume> cgVolumes){
  Iterator<Volume> cgVolumesIter=cgVolumes.iterator();
  while (cgVolumesIter.hasNext()) {
    Volume cgVolume=cgVolumesIter.next();
    if ((BlockFullCopyUtils.isVolumeFullCopy(cgVolume,_dbClient)) && (!BlockFullCopyUtils.isFullCopyDetached(cgVolume,_dbClient))) {
      return false;
    }
    if ((BlockFullCopyUtils.isVolumeCGFullCopySource(cgVolume,_dbClient)) && (!BlockFullCopyUtils.volumeDetachedFromFullCopies(cgVolume,_dbClient))) {
      return false;
    }
  }
  return true;
}

private boolean canConsistencyGroupBeModified ( BlockConsistencyGroup consistencyGroup , List < Volume > cgVolumes ) { Iterator < Volume > cgVolumesIter = cgVolumes . iterator ( ) ; while ( cgVolumesIter . hasNext ( ) ) { Volume cgVolume = cgVolumesIter . next ( ) ; if ( ( BlockFullCopyUtils . isVolumeFullCopy ( cgVolume , _dbClient ) ) && ( ! BlockFullCopyUtils . isFullCopyDetached ( cgVolume , _dbClient ) ) ) { return false ; } if ( ( BlockFullCopyUtils . isVolumeCGFullCopySource ( cgVolume , _dbClient ) ) && ( ! BlockFullCopyUtils . volumeDetachedFromFullCopies ( cgVolume , _dbClient ) ) ) { return false ; } } return true ; }
determines if the passed consistency group can have new volumes added or existing volumes removed .
