private void validateFile(File jsonFile) throws AdeUsageException {
  if (!jsonFile.isFile()) {
    throw new AdeUsageException("Input is not a file: " + jsonFile.getPath());
  }
 else   if (!jsonFile.canRead()) {
    throw new AdeUsageException("Input file is not readable: " + jsonFile.getPath());
  }
}

private void validateFile ( File jsonFile ) throws AdeUsageException { if ( ! jsonFile . isFile ( ) ) { throw new AdeUsageException ( "Input is not a file: " + jsonFile . getPath ( ) ) ; } else if ( ! jsonFile . canRead ( ) ) { throw new AdeUsageException ( "Input file is not readable: " + jsonFile . getPath ( ) ) ; } }
error checking to make sure the json file passed in is valid .
