static void checkGenericTransitionHasTheRightParameters(Method method) throws IllegalTransitionAnnotationException {
        Class<?> paramTypes[] = method.getParameterTypes();
        if (paramTypes == null || paramTypes.length != 1 || !paramTypes[0].equals(TransitionInfo.class))
            throw new IllegalTransitionAnnotationException("Transition for method " + method.getName()
                    + " is not well defined. It should have one and only TransitionEvent paramter");
    }