public Optional<String> getJavaHome() {
    return Optional.ofNullable(get(ShellCommandConfig.TASK_JAVA_HOME));
  }
Returns the worker opts for the application if available.
samza-core/src/main/java/org/apache/samza/config/ShellCommandConfig.java