@Override
 public void setEnvVars(Collection<IEnvironmentVariable> envVars) {
   if (envVars == null) return;
   String[] path = JBossDmrExtentions.getPath(getPropertyKeys(), ENV);
   ModelNode envNode = getNode().get(path);
   envNode.clear();
   envVars.forEach(v -> envNode.add(ModelNode.fromJSONString(v.toJson())));
 }
 @Override
 public void setEnvironmentVariables(Map<String, String> envVars) {
   String[] path = JBossDmrExtentions.getPath(getPropertyKeys(), ENV);
   ModelNode env = getNode().get(path);
   env.clear();
   for (Entry<String, String> entry : envVars.entrySet()) {
     ModelNode var = new ModelNode();
     var.get(NAME).set(entry.getKey());
     var.get(VALUE).set(entry.getValue());
     env.add(var);
   }
 }