public Map<String,String> toEnvs(){
  Map<String,String> envs=new HashMap<>();
  envs.put(IGNITE_CLUSTER_NAME,toEnvVal(clusterName));
  envs.put(IGNITE_RUN_CPU_PER_NODE,toEnvVal(cpuPerNode));
  envs.put(IGNITE_MEMORY_PER_NODE,toEnvVal(memPerNode));
  envs.put(IGNITE_NODE_COUNT,toEnvVal(nodeCnt));
  envs.put(IGNITE_URL,toEnvVal(igniteUrl));
  envs.put(IGNITE_PATH,toEnvVal(ignitePath));
  envs.put(LICENCE_PATH,toEnvVal(licencePath));
  envs.put(IGNITE_JVM_OPTS,toEnvVal(jvmOpts));
  envs.put(IGNITE_WORKING_DIR,toEnvVal(igniteWorkDir));
  envs.put(IGNITE_LOCAL_WORK_DIR,toEnvVal(igniteLocalWorkDir));
  envs.put(IGNITE_RELEASES_DIR,toEnvVal(igniteReleasesDir));
  envs.put(IGNITE_CONFIG_XML,toEnvVal(igniteCfg));
  envs.put(IGNITE_USERS_LIBS,toEnvVal(userLibs));
  if (hostnameConstraint != null)   envs.put(IGNITE_HOSTNAME_CONSTRAINT,toEnvVal(hostnameConstraint.pattern()));
  return envs;
}

public Map < String , String > toEnvs ( ) { Map < String , String > envs = new HashMap < > ( ) ; envs . put ( IGNITE_CLUSTER_NAME , toEnvVal ( clusterName ) ) ; envs . put ( IGNITE_RUN_CPU_PER_NODE , toEnvVal ( cpuPerNode ) ) ; envs . put ( IGNITE_MEMORY_PER_NODE , toEnvVal ( memPerNode ) ) ; envs . put ( IGNITE_NODE_COUNT , toEnvVal ( nodeCnt ) ) ; envs . put ( IGNITE_URL , toEnvVal ( igniteUrl ) ) ; envs . put ( IGNITE_PATH , toEnvVal ( ignitePath ) ) ; envs . put ( LICENCE_PATH , toEnvVal ( licencePath ) ) ; envs . put ( IGNITE_JVM_OPTS , toEnvVal ( jvmOpts ) ) ; envs . put ( IGNITE_WORKING_DIR , toEnvVal ( igniteWorkDir ) ) ; envs . put ( IGNITE_LOCAL_WORK_DIR , toEnvVal ( igniteLocalWorkDir ) ) ; envs . put ( IGNITE_RELEASES_DIR , toEnvVal ( igniteReleasesDir ) ) ; envs . put ( IGNITE_CONFIG_XML , toEnvVal ( igniteCfg ) ) ; envs . put ( IGNITE_USERS_LIBS , toEnvVal ( userLibs ) ) ; if ( hostnameConstraint != null ) envs . put ( IGNITE_HOSTNAME_CONSTRAINT , toEnvVal ( hostnameConstraint . pattern ( ) ) ) ; return envs ; }
convert to properties to map .
