public Map < String , CmsJspCategoryAccessBean > getReadAllSubCategories ( ) { if ( null == m_allSubCategories ) { m_allSubCategories = CmsCollectionsGenericWrapper . createLazyMap ( new Transformer ( ) { @ Override public Object transform ( Object categoryPath ) { try { List < CmsCategory > categories = CmsCategoryService . getInstance ( ) . readCategories ( m_cms , ( String ) categoryPath , true , m_cms . getRequestContext ( ) . getUri ( ) ) ; CmsJspCategoryAccessBean result = new CmsJspCategoryAccessBean ( m_cms , categories , ( String ) categoryPath ) ; return result ; } catch ( CmsException e ) { LOG . warn ( e . getLocalizedMessage ( ) , e ) ; return null ; } } } ) ; } return m_allSubCategories ; }
Reads all sub - categories below the provided category .