private String validateProductDirectory(String productDir) {
    if (isEmpty(productDir)) {
      return null;
    }
    return productDir;
  }
Returns null if productDir is empty; else converts it to File.
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/AgentConfigImpl.java