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;
}

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 ; }
check protection set exists in db
