private ThreadLocal<ClassRealm> lookupRealm = new ThreadLocal<ClassRealm>();
public void addComponent( Object component, String role )
throws ComponentRepositoryException
{
ClassRealm classRealm = null;
// find a realm for this instance
ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
if ( classLoader instanceof ClassRealm )
{