code: public static ProcessorActionHandler getHandler(ProcessorAction action) {
          ProcessorActionHandler ret = null;
          Class<? extends ProcessorActionHandler> cls = handlers.get(action.getClass());
          if (cls != null) {
              try {
                  Constructor<? extends ProcessorActionHandler> con = cls.getConstructor(ProcessorAction.class);
                  ret = con.newInstance(action);
              } catch (Exception e) {
                  log.log(Level.SEVERE, "Failed to instantiate handler for action '" + action + "'", e);
              }
          }
          return ret;
      }
docs: This method returns an action handler for the supplied action.
  
  @param action The action
  @return The handler