protected boolean isInWikiMode()
    {
        boolean result = true;
        try {
            this.componentManagerProvider.get().getInstance(WikiModel.class);
        } catch (ComponentLookupException e) {
            result = false;
        }

        return result;
    }
protected boolean isInWikiMode ( ) { boolean result = true ; try { this . componentManagerProvider . get ( ) . getInstance ( WikiModel . class ) ; } catch ( ComponentLookupException e ) { result = false ; } return result ; }
@return true if we're in wiki mode (i.e. an implementing class for {@link org.xwiki.rendering.wiki.WikiModel}
exists)