code: private ServerEventHandler createServerEventHandler(
  			SFSEventType type, Class<?> clazz) {
  		try {
  			return (ServerEventHandler)
  					ReflectClassUtil.newInstance(
  					clazz, BaseAppContext.class, context);
  		} catch (ExtensionException e) {
  		    getLogger().error("Error when create server event handlers", e);
  			throw new RuntimeException("Can not create event handler of class "
  					+ clazz, e);
  		}
  	}
docs: Create server event handler by type and handler class
  
  @param type event type
  @param clazz handler class
  @return a ServerEventHandler object