@ SuppressWarnings ( "unchecked" ) public < T extends ReportModel > T getReportByName ( String name , Class < T > clazz ) { WindupVertexFrame model = this . getUniqueByProperty ( ReportModel . REPORT_NAME , name ) ; try { return ( T ) model ; } catch ( ClassCastException ex ) { throw new WindupException ( "The vertex is not of expected frame type " + clazz . getName ( ) + ": " + model . toPrettyString ( ) ) ; } }
Returns the ReportModel with given name .