}
state.addOnEntrySelfTransaction(new MethodSelfTransition(m, handler));
}
if (m.isAnnotationPresent(OnExit.class)) {
OnExit onExitAnnotation = (OnExit) m.getAnnotation(onExitSelfTransitionAnnotation);
State state = states.get(onExitAnnotation.value());
if (state == null) {
throw new StateMachineCreationException("Error encountered "
+ "when processing onExit annotation in method " + m + ". state " + onExitAnnotation.value()
+ " not Found.");
}
state.addOnExitSelfTransaction(new MethodSelfTransition(m, handler));
}