void (Element element, Map<String, String> envs) { final Element envsElement = element.getChild(ENVS); if (envsElement != null) { for (Element envElement : envsElement.getChildren(ENV)) { final String envName = envElement.getAttributeValue(NAME); final String envValue = envElement.getAttributeValue(VALUE); if (envName != null && envValue != null) { envs.put(envName, envValue); } } } else { //compatibility with prev version for (Element o : element.getChildren(OPTION)) { if (Comparing.strEqual(o.getAttributeValue(NAME), ENV_VARIABLES)) { splitVars(envs, o.getAttributeValue(VALUE)); break; } } } }