code: public static String getJobIdentifier() {
      // TODO[JIRA REEF-818]: currently we obtain the job id directly by parsing execution (container) directory path
      // #845 is open to get the id from RM properly
      for (File directory = new File(System.getProperty("user.dir"));
           directory != null; directory = directory.getParentFile()) {
        final String currentDirectoryName = directory.getName();
        if (currentDirectoryName.toLowerCase().contains("application_")) {
          return currentDirectoryName;
        }
      }
      // cannot find a directory that contains application_, presumably we are on local runtime
      // again, this is a hack for now, we need #845 as a proper solution
      return "REEF_LOCAL_RUNTIME";
    }
docs: Get the id of current job/application.