public < E > E get ( Class < E > clss ) { testControllerClass ( clss ) ; synchronized ( controllers ) { for ( Controller controller : controllers ) { if ( clss . isAssignableFrom ( controller . getClass ( ) ) ) { return clss . cast ( controller ) ; } } } return null ; }
Gets the controller of a specific class .