adding a new interface method of Spring 4 to make this implementation compatible with the different Spring versions
fixing an issue with Spring Boot using a bean factory instead of just the bean definition registry to evaluate conditions