/** * This method creates a ContextHandler, and then pass a request context to it for process. * * @throws PDPNotReadyException */ public Object handleRequest(Object reqCtx) throws PDPNotReadyException { if (status.getProperty(KEY_RUN_STATUS).equals(STATUS_RUN_RUNING)) { ContextHandler handler = contextFactory.getContextHandler(); return handler.handle(reqCtx); } else { throw new PDPNotReadyException("PDP is not ready."); } }