public static BlockMirror checkIfBlockMirrorExistsInDB(String mirrorNativeGuid,DbClient dbClient){
  List<BlockMirror> activeMirrors=CustomQueryUtility.getActiveBlockMirrorByNativeGuid(dbClient,mirrorNativeGuid);
  Iterator<BlockMirror> mirrorItr=activeMirrors.iterator();
  return mirrorItr.hasNext() ? mirrorItr.next() : null;
}

public static BlockMirror checkIfBlockMirrorExistsInDB ( String mirrorNativeGuid , DbClient dbClient ) { List < BlockMirror > activeMirrors = CustomQueryUtility . getActiveBlockMirrorByNativeGuid ( dbClient , mirrorNativeGuid ) ; Iterator < BlockMirror > mirrorItr = activeMirrors . iterator ( ) ; return mirrorItr . hasNext ( ) ? mirrorItr . next ( ) : null ; }
check if the given native guid string exists in the database for a blockmirror object .
