}
protected Class<?> findClass(DeploymentUnit unit, String name, boolean mustFind) throws ClassNotFoundException
{
//The class is loaded by a different classloader, so search for the correct class
FlatDeployment flatDeployment = (FlatDeployment)getBean(DeployersUtils.getDeploymentBeanName(unit));
assertNotNull(flatDeployment);
Class<?> found = null;
for (String current : flatDeployment.getFlatBeanDeploymentArchive().getBeanClasses())
{
if (name.equals(current))
{
found = unit.getClassLoader().loadClass(current);
break;