code: private byte[] getFileContents(File file) {
      if (file.exists()) {
        try {
          return FileUtil.getFileContents(file);
        } catch (IOException e) {
          e.printStackTrace();
        }
      }
      return null;
    }
docs: Gets the contents of the specified file, or null if the file does not
  exist.
  @param file The <code>File</code> whose contents to obtain.
  @return The file contents, or null if the file does not exist.