question: public static ProtectionSet checkProtectionSetExistsInDB ( DbClient dbClient , String nativeGuid ) throws IOException { List < ProtectionSet > cgs = CustomQueryUtility . getActiveProtectionSetByNativeGuid ( dbClient , nativeGuid ) ; Iterator < ProtectionSet > cgsItr = cgs . iterator ( ) ; if ( cgsItr . hasNext ( ) ) { return cgsItr . next ( ) ; } return null ; }
target:  check Protection Set exists in DB