RemoteRestRuntimeEngineBuilder runtimeEngineBuilder = RemoteRestRuntimeEngineFactory.newBuilder()
.addDeploymentId(deploymentId)
.addUrl(deploymentUrl)
.useFormBasedAuth(useFormBasedAuth);
RemoteRuntimeEngine krisRemoteEngine = runtimeEngineBuilder
.addUserName(KRIS_USER)
.addPassword(KRIS_PASSWORD)
.build();
RemoteRuntimeEngine maryRemoteEngine = runtimeEngineBuilder
.addUserName(MARY_USER)
.addPassword(MARY_PASSWORD)
.build();
RemoteRuntimeEngine johnRemoteEngine = runtimeEngineBuilder
.addUserName(JOHN_USER)
.addPassword(JOHN_PASSWORD)
.build();
}