code: public static RegisteredService getRegisteredService(final RequestContext context) {
          return context != null ? (RegisteredService) context.getFlowScope().get(PARAMETER_REGISTERED_SERVICE) : null;
      }
docs: Gets the registered service from the flow scope.
  
  @param context the context
  @return the service