private ListInvokersResponse retrieveListInvokers(ListInvokersRequest request) {
List<Invoker> listInvokers = null;
try {
HPISessionManager sessionManager = HPISessionManager.getInstance();
sessionManager.updateSession(request.getSessionId());
HPIDataFactory dataFactory = HPIDataFactory.getInstance();
listInvokers = new ArrayList<Invoker>(dataFactory.getInvokers());
return new ListInvokersResponse(listInvokers, "List invokers executed successfully.", Response.Status.SUCCESS);
} catch (HPISessionException e) {
return new ListInvokersResponse(listInvokers, "The session is not valid. " + e.getMessage(), Response.Status.FAIL);
}
}