throw new EXistException("no class defined for action: " + elem.getLocalName());
if (!Action.class.isAssignableFrom(clazz))
throw new EXistException("class " + clazz.getName() + " does not implement interface Action");
try {
Action instance = (Action) clazz.newInstance();
instance.configure(runner, this, elem);
actions.add(instance);
} catch (InstantiationException e) {
throw new EXistException("failed to create instance of class " + clazz.getName(), e);
} catch (IllegalAccessException e) {
throw new EXistException("failed to create instance of class " + clazz.getName(), e);