// returns whether the given file exists public static boolean exists(java.io.File file) throws ServiceException { return file == null ? false : file.exists() && file.isFile(); }