public View viewByContentType ( String contentType ) { for ( View view : views . values ( ) ) { if ( view . getContentType ( ) . equals ( contentType ) ) { return view ; } } return null ; }
Return the first view with the given content type .