@SuppressWarnings({ "unchecked", "rawtypes" })
public void wireExtensions(Class<?> interfaceName, List<?> extension) throws WiringException {
if (interfaceName.equals(CommandHandler.class)) {
// add stats for all hooks
for (Object anExtension : extension) {
CommandHandler c = (CommandHandler) anExtension;
if (!equals(c)) {
String cName = c.getClass().getName();
try {
cStats.put(cName, createCommandHandlerStats(c));
} catch (Exception e) {
throw new WiringException("Unable to wire Hooks", e);
}