new ClassPathScanningCandidateComponentProvider(false);
scanner.addIncludeFilter(new AnnotationTypeFilter(XmlRootElement.class));
List<Class<?>> classes = new ArrayList<Class<?>>();
for (String basePackage : basePackages) {
Set<BeanDefinition> definitions = scanner.findCandidateComponents(basePackage);
for (BeanDefinition definition : definitions) {
String className = definition.getBeanClassName();
log.info("Found class: {}", className);
classes.add(Class.forName(className));
}