private static Context preRegister(Context context) {
        Bark.preRegister(context);

        // force the use of the scanner that captures Javadoc comments
        DocCommentScanner.Factory.preRegister(context);

        if (context.get(JavaFileManager.class) == null)
            JavacFileManager.preRegister(context);

        return context;
    }