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 ( ) ; }
Get a FlowController instance given a FlowController class .