public void fireEvent(final IDominoEvent event) {
for (Class<?> clazz : XotsService.getInstance().getLoadedClasses()) {
if (XotsITriggeredTasklet.class.isAssignableFrom(clazz) && Runnable.class.isAssignableFrom(clazz)) {
// Then look to see if the annotation exists and matches this event
Trigger trigger = clazz.getAnnotation(Trigger.class);
if (trigger != null) {
String value = trigger.value();
if (value != null) {
// TODO Handle DB events
if (event instanceof CustomNamedEvent) {
String eventName = ((CustomNamedEvent) event).getName();
if (value.equals(eventName)) {