/**
* @see org.andromda.metafacades.uml.EventFacade#getState()
*/
protected Object handleGetState()
{
State eventState = null;
final Collection allStates = UML14MetafacadeUtils.getModel().getStateMachines().getState().refAllOfType();
for (final Iterator stateIterator = allStates.iterator(); stateIterator.hasNext() && eventState == null;)
{
final State state = (State)stateIterator.next();
if (state.getDeferrableEvent().contains(metaObject))
{
eventState = state;
}
}