public static String getDescription ( String keyword , ApplicationContext context , Map < String , String > beanMap ) { KeywordInfo keywordInfo = getKeywordInfo ( keyword , context , beanMap ) ; if ( keywordInfo == null ) { return "" ; } String desc = keywordInfo . description ( ) ; if ( desc . startsWith ( "classpath:" ) ) { try { ResourceEditor editor = new ResourceEditor ( ) ; editor . setAsText ( desc ) ; Resource r = ( Resource ) editor . getValue ( ) ; return IOUtils . toString ( r . getInputStream ( ) ) ; } catch ( Exception ignored ) { } } return desc ; }
Retrieves the given keyword s description .