{
<BUG>Map<String, PortalHandler> handlerMap = getHandlerMap(portal, false);
</BUG>
if (handlerMap != null)
{
<BUG>PortalHandler ph = (PortalHandler) safeGet(handlerMap, urlFragment);
if (ph != null)</BUG>
{
ph.deregister(portal);
<BUG>safePut(handlerMap, urlFragment, null);
</BUG>
log.warn("Handler Present on  " + urlFragment + " " + ph

{
removeHandler(portal, urlFragment);
}
}
public void addPortal(Portal portal)
{
