static String resolveWorkingDirectory(File workingDirectory) {
    String workingDirPath = IOUtils.tryGetCanonicalPathElseGetAbsolutePath(workingDirectory);
    if (!workingDirectory.exists()) {
      if (!workingDirectory.mkdirs()) {
        throw new IllegalStateException(String.format(
            "Could not create directory %s. Please verify directory path or user permissions.",
            workingDirPath));
      }
    }
    return workingDirPath;
  }
Encapsulates methods used by StartServerCommand and StartLocatorCommand and their associated
tests.

@see StartLocatorCommand
@see StartServerCommand
geode-gfsh/src/main/java/org/apache/geode/management/internal/cli/commands/StartMemberUtils.java