// Create JaxbCommandsRequest instance and add commands
Command<?> cmd = new StartProcessCommand();
((StartProcessCommand) cmd).setProcessId(PROCESS_ID_1);
int oompaProcessingResultIndex = 0;
JaxbCommandsRequest req = new JaxbCommandsRequest(DEPLOYMENT_ID, cmd);
cmd = new GetTaskAssignedAsPotentialOwnerCommand();
((GetTaskAssignedAsPotentialOwnerCommand) cmd).setUserId(USER);
req.getCommands().add(cmd);
int loompaMonitoringResultIndex = 1;
// Get JNDI context from server
InitialContext context = getRemoteJbossInitialContext(serverUrl, USER, PASSWORD);