handleException("A handler element must have a class attribute");
}
try {
Class clazz = APIFactory.class.getClassLoader().loadClass(handlerClass);
Handler handler = (Handler) clazz.newInstance();
api.addHandler(handler);
} catch (Exception e) {
handleException("Error initializing API handler: " + handlerClass, e);
}
}