getHandlerCollection().removeHandler(handler);
if (getHandler() instanceof HandlerCollection) ((HandlerCollection)getHandler()).removeHandler(handler);
    public void removeHandler(Handler handler)        throws Exception    {        getHandlerCollection().removeHandler(handler);    }