public void start(ResourceContext context) {
super.start(context);
Configuration pluginConfiguration = context.getPluginConfiguration();
if (pluginConfiguration.getSimple("eventTrackingEnabled").getBooleanValue()) {
try {
eventLogDelegate = new Win32EventLogDelegate(pluginConfiguration);
eventLogDelegate.open();
context.getEventContext().registerEventPoller(eventLogDelegate, 60);
} catch (Throwable t) {
log.error("Failed to start the event logger. Will not be able to capture Windows events", t);
if (eventLogDelegate != null) {