} else if (serviceName.equals(HPIDialogueConstants.SERVER_SHUTDOWN_SERVICE)) {
return new ServerShutdownRequest();
} else if (serviceName.equals(HPIDialogueConstants.LIST_INVOKERS_SERVICE)) {
return new ListInvokersRequest(parameters.getLeaf(HPIDialogueConstants.SESSION_ID).getValue());
} else if (serviceName.equals(HPIDialogueConstants.DESCRIBE_INVOKER_SERVICE)) {
return new DescribeInvokerRequest(parameters.getLeaf(HPIDialogueConstants.SESSION_ID).getValue(), parameters.getLeaf(HPIDialogueConstants.INVOKER_ID).getValue());
} else if (serviceName.equals(HPIDialogueConstants.LOGOFF_SERVICE)) {
return new LogoffRequest(parameters.getLeaf(HPIDialogueConstants.SESSION_ID).getValue());
} else if (serviceName.equals(HPIDialogueConstants.EXECUTE_INVOKER_SERVICE)) {
return new ExecuteInvokerRequest(parameters.getLeaf(HPIDialogueConstants.SESSION_ID).getValue(), parameters.getLeaf(HPIDialogueConstants.INVOKER_ID).getValue());
} else throw new RuntimeException("Unknow value to " + HPIDialogueConstants.SERVICE_NAME + ", the value is: " + serviceName);