docs: private static String[] createEnvironmentArray(final Map<String, String> envMap) {
          final ArrayList<String> envlist = new ArrayList<String>();
          for (final Map.Entry<String, String> entry : envMap.entrySet()) {
              envlist.add(entry.getKey() + "=" + entry.getValue());
          }
          return envlist.toArray(new String[envlist.size()]);
      }