public List < BroadCategory > getBroadCategories ( ) { ClientResource resource = new ClientResource ( Route . BROAD_CATEGORY . url ( ) ) ; try { Representation repr = resource . get ( ) ; return mapper . readValue ( repr . getText ( ) , new TypeReference < List < BroadCategory > > ( ) { } ) ; } catch ( IOException ex ) { LEX4JLogger . log ( Level . WARNING , "Could not retrieve broad categories correctly!" ) ; return null ; } }
Returns the broad categories