List<String> (ParametersList vmParameters) { List<String> patchedVmParameters = new ArrayList<>(vmParameters.getList()); for (Iterator<String> iterator = patchedVmParameters.iterator(); iterator.hasNext(); ) { String parameter = iterator.next(); if (parameter.contains("suspend=n,server=y")) { iterator.remove(); patchedVmParameters.add(StringUtil.replace(parameter, "suspend=n,server=y", "suspend=y,server=y")); break; } } return patchedVmParameters; }