public boolean isAdvisorRegistered(Advisor advisor)
{
synchronized (getRegisteredCLs())
{
if (!advisors.containsKey(advisor.getClazz())) return false;
ScopedClassPool pool = (ScopedClassPool) getRegisteredClassPool(advisor.getClazz().getClassLoader());
if (pool == null) return false;
if (pool.isUnloadedClassLoader())
{
unregisterClassLoader(advisor.getClazz().getClassLoader());
return false;
}
else