/** * Initialize a CommandHandler that has been registered to this server. * * If the CommandHandler implements the <code>ServerConfigurationAware</code> interface, then set its * <code>ServerConfiguration</code> property to <code>this</code>. * * If the CommandHandler implements the <code>ReplyTextBundleAware</code> interface, then set its * <code>replyTextBundle</code> property using the reply text bundle for this server. * * @param commandHandler - the CommandHandler to initialize */ protected void initializeCommandHandler(CommandHandler commandHandler) { if (commandHandler instanceof ServerConfigurationAware) { ServerConfigurationAware sca = (ServerConfigurationAware) commandHandler; sca.setServerConfiguration(this); } ReplyTextBundleUtil.setReplyTextBundleIfAppropriate(commandHandler, getReplyTextBundle()); }