private void processHandler(Element elem) throws ConfigurationException {
String type = elem.getAttribute("type");
if (type == null || type.equals("")) {
type = "generic";
}
ArtifactHandler handler = Registry.getInstance().createHandler(type);
if (handler == null) {
fail("Handler of type " + type + " is not registered.", elem);
}
// finally add handler
getHandlers().add(handler);