Add a few more checks for the @bean annotated methods, e.g. the methods need to be publicly accessible, otherwise the methods cannot be called from the AnnotationBeanFactory. The generator should throw some exceptions when an "error" in the configuration was found.