public PlaceController createController ( ) { Class < ? > cclass = getControllerClass ( ) ; if ( cclass == null ) { throw new RuntimeException ( "PlaceConfig.createController() must be overridden." ) ; } log . warning ( "Providing backwards compatibility. PlaceConfig." + "createController() should be overridden directly." ) ; try { return ( PlaceController ) cclass . newInstance ( ) ; } catch ( Exception e ) { log . warning ( "Failed to instantiate controller class '" + cclass + "'." , e ) ; return null ; } }
Create the controller that should be used for this place .