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