protected static File processDirOption(final Map<String, Object> options, final String dirValue)
      throws FileNotFoundException {
    final File workingDirectory = new File(dirValue);

    if (!workingDirectory.exists()) {
      throw new FileNotFoundException(
          String.format("The input working directory does not exist: %s",
              dirValue));
    }

    options.put(DIR, workingDirectory);

    return workingDirectory;
  }
Sets the status of the GemFire JMX Agent by serializing a <code>Status</code> object to a
status file in the Agent's working directory.
<p>

@param status the Status object representing the state of the Agent process to persist to disk.
@return the written Status object.
@throws IOException if the Status could not be successfully persisted to disk.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentLauncher.java