for(String key : environmentVariables.keySet()) { int i = 0; NameValuePairType nameValuePairType = applicationDescription.getType().addNewApplicationEnvironment(); nameValuePairType.setName(key); nameValuePairType.setValue(environmentVariables.get(key)); for(String key : envVariables.keySet()) { int i = 0; NameValuePairType nameValuePairType = applicationDescription.getType().addNewApplicationEnvironment(); nameValuePairType.setName(key); nameValuePairType.setValue(envVariables.get(key));