public static void addHandler(IEventHandler handler)
    {
    	HandledEvents hEvt = handler.getClass().getAnnotation(HandledEvents.class);
    	
    	if(hEvt == null)
    		throw new HandlerNotAnnotatedException("Handler for class " + handler.getClass().getName() + " was not properly annotated and cannot be loaded.");
    
    	fWriteLock.lock();
    	
    	for (String currentEventName : hEvt.handledEvents())
    	{
    		eventHandlers.put(currentEventName, handler);
    	}
    	
    	fWriteLock.unlock();
    }