{
Iterator i = jipletMap.entrySet().iterator();
while (i.hasNext() == true)
{
Map.Entry entry = (Map.Entry) i.next();
Jiplet jiplet = (Jiplet) entry.getKey();
Pair p = (Pair) entry.getValue();
Realm r = (Realm) p.getFirst();
String rname = null;
ClassLoader cl = Thread.currentThread().getContextClassLoader();
try
{
Thread.currentThread().setContextClassLoader(
r.getClass().getClassLoader());
rname = realm.getRealmName();
}
finally
{
Thread.currentThread().setContextClassLoader(cl);
}
if (r.getRealmName().equals(rname) == true)
{
JipletLogger
.warn("Removing realm "
+ realm.getRealmName()
+ " from jiplet "
+ jiplet.getName()
+ ". No auth. check will be performed for this jiplet anymore.");
i.remove();
}
}
}