private static String getPageDoc ( IAnnotationBinding [ ] annotations , AcceptableLocales locales ) { Map < Locale , String > allPages = getAllPageDocs ( annotations ) ; if ( allPages . isEmpty ( ) ) { return null ; // no @Page found } for ( Locale locale : locales . getLocales ( ) ) { String value = allPages . get ( locale ) ; if ( value != null ) { return value ; } } // set empty string if no locale matched data is found return "" ; }
return null if no Page found