question: public static boolean volumeDetachedFromFullCopies ( Volume volume , DbClient dbClient ) { boolean detached = true ; StringSet fullCopyIds = volume . getFullCopies ( ) ; if ( ( fullCopyIds != null ) && ( ! fullCopyIds . isEmpty ( ) ) ) { Iterator < String > fullCopyIdsIter = fullCopyIds . iterator ( ) ; while ( fullCopyIdsIter . hasNext ( ) ) { String fullCopyId = fullCopyIdsIter . next ( ) ; Volume fullCopyVolume = dbClient . queryObject ( Volume . class , URI . create ( fullCopyId ) ) ; if ( ! isFullCopyDetached ( fullCopyVolume , dbClient ) ) { detached = false ; } } } return detached ; }
target:  Verify that a volume with full copies can be deleted.