List<EnvironmentVariable> (Map<String, String> map, final boolean readOnly) { return ContainerUtil.map(map.entrySet(), entry -> new EnvironmentVariable(entry.getKey(), entry.getValue(), readOnly) { @Override public boolean getNameIsWriteable() { return !readOnly; } }); }