code: public FlowController getFlowControllerInstance( Class flowControllerClass )
          throws InstantiationException, IllegalAccessException
      {
          assert FlowController.class.isAssignableFrom( flowControllerClass )
                  : "Class " + flowControllerClass.getName() + " does not extend " + FlowController.class.getName();
          return ( FlowController ) flowControllerClass.newInstance();
      }
docs: Get a FlowController instance, given a FlowController class.
  
  @param flowControllerClass the Class, which must be assignable to {@link FlowController}.
  @return a new FlowController instance.