public static Properties retrieveSparkProperties(SparkApplicationData appData) {
    Option<String> prop = appData.appConfigurationProperties().get(SPARK_EXTRA_JAVA_OPTIONS);
    Properties properties = new Properties();
    if (prop.isDefined()) {
      try {
        Map<String, String> javaOptions = Utils.parseJavaOptions(prop.get());
        for (String key : javaOptions.keySet()) {
          properties.setProperty(key, unescapeString(javaOptions.get(key)));
        }
      } catch (IllegalArgumentException e) {
        logger.error("Encountered error while parsing java options into urls: " + e.getMessage());
      }
    } else {
      logger.error("Unable to retrieve the scheduler info for application [" +
          appData.appId() + "]. It does not contain [" + SPARK_EXTRA_JAVA_OPTIONS + "] property in its spark properties.");
    }
    return properties;
  }
Retrieve the spark properties from SPARK_EXTRA_JAVA_OPTIONS

@param appData the Spark Application Data
@return The retrieved Spark properties
app/com/linkedin/drelephant/util/InfoExtractor.java