Spring-inject entities if they have an @Configurable annotation. Can be put on any entity without efficiency concerns.
Inject the given object if it is non null and annotated with @Configurable.