builder.directory(),
new LinkedHashMap<String, String>(environment),
allowedExitValues == null ? null : new HashSet<Integer>(allowedExitValues));
if (readOutput) {
PumpStreamHandler pumps = (PumpStreamHandler) streams;
ByteArrayOutputStream out = new ByteArrayOutputStream();
return startInternal(process, attributes, redirectOutputAlsoTo(pumps, out), out);
}
else {
return startInternal(process, attributes, streams, null);