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