// Use the java args in the script.
Map<String, String> env = pb.environment();
env.put("RECURSIVE_LOCAL_CALL", "true");
try
{
ProcessReader outReader = null;
ProcessReader errReader = null;
Process process = pb.start();
outReader = new ProcessReader(process, getOutputStream(), false);
errReader = new ProcessReader(process, getErrorStream(), true);
outReader.startReading();
errReader.startReading();
int code = process.waitFor();
for (ReplicationCliReturnCode c : ReplicationCliReturnCode.values())
{
if (c.getReturnCode() == code)