suppressed rawtypes and unchecked warnings caused by ServerEventHandler