* @param hook
* @throws WiringException
*/
public final synchronized void addHook(Hook hook) throws WiringException {
if (hook instanceof AuthHook && !authHandler) {
defaultHandlers.add(new AuthCmdHandler());
authHandler = true;
}
addHook(hooks.size(), hook);
}