question: public void callEvent ( Event event ) { if ( event . isAsynchronous ( ) ) { if ( Thread . holdsLock ( this ) ) { throw new IllegalStateException ( event . getEventName ( ) + " cannot be triggered asynchronously from inside synchronized code." ) ; } if ( server . isPrimaryThread ( ) ) { throw new IllegalStateException ( event . getEventName ( ) + " cannot be triggered asynchronously from primary server thread." ) ; } fireEvent ( event ) ; } else { synchronized ( this ) { fireEvent ( event ) ; } } }
target:  Calls an event with the given details. <p> This method only synchronizes when the event is not asynchronous.