//Check if the class name is being changed.
if(!newHandlerClass.equals(oldHandlerClass)) {
AccessControlHandler oldHandler =
accessControlHandler.getAndSet(getHandler(newHandlerClass,
newConfiguration, true, true));
oldHandler.finalizeAccessControlHandler();
} else {
//Some other attribute has changed, try to get a new non-initialized
//handler, but keep the old handler.
getHandler(newHandlerClass,newConfiguration, false, false);
}