classLoader );
String patternFinder = ResourcePatternResolver.CLASSPATH_ALL_URL_PREFIX
+ ClassUtils.convertClassNameToResourcePath( packageName ) + "/**/*.class";
Resource[] resources = pathMatchingResourcePatternResolver.getResources( patternFinder );
SimpleMetadataReaderFactory simpleMetadataReaderFactory = new SimpleMetadataReaderFactory();
getLogger().debug( "springresource " + resources.length + " for pattern " + patternFinder );
for ( Resource resource : resources )
{
getLogger().debug( "springresource " + resource.getFilename() );
MetadataReader metadataReader = simpleMetadataReaderFactory.getMetadataReader( resource );
AnnotationMetadata annotationMetadata = getAnnotationMetadataIfServlet(metadataReader,
simpleMetadataReaderFactory,
pathMatchingResourcePatternResolver);
if ( annotationMetadata != null )