final Collection<String> ignoreBeansList = new HashSet<String>();
for (ResteasyRegistration registration : registries.values())
{
String beanName = registration.getBeanName();
ignoreBeansList.add(beanName);
BeanDefinition beanDef = beanFactory.getBeanDefinition(beanName);
Class beanClass = null;
try
{
beanClass = Thread.currentThread().getContextClassLoader().loadClass(beanDef.getBeanClassName());
SpringResourceFactory reg = new SpringResourceFactory(beanName, beanFactory, beanClass);
getRegistry().addResourceFactory(reg, registration.getContext());
}
catch (ClassNotFoundException e)
{