throw new IllegalStateException("This ejb does not support timers " + beanContext.getDeploymentID());
} else if (beanContext.getEjbTimeout() == null) {
boolean hasSchedules = false;
for (final Iterator<Map.Entry<Method, MethodContext>> it = beanContext.iteratorMethodContext(); it.hasNext(); ) {
final Map.Entry<Method, MethodContext> entry = it.next();
final MethodContext methodContext = entry.getValue();
if (methodContext.getSchedules().size() > 0) {
hasSchedules = true;
}