private void processSchedules(final EnterpriseBean bean, final AnnotationFinder annotationFinder) {
if (!(bean instanceof TimerConsumer)) {
return;
}
final TimerConsumer timerConsumer = (TimerConsumer) bean;
final Set<Annotated<Method>> scheduleMethods = new HashSet<Annotated<Method>>();
scheduleMethods.addAll(annotationFinder.findMetaAnnotatedMethods(Schedules.class));
scheduleMethods.addAll(annotationFinder.findMetaAnnotatedMethods(Schedule.class));
final List<Timer> timers = timerConsumer.getTimer();
// TODO : The NamedMethod object implements equals and hashCode, so we could rely on that rather than collecting strings
final Set<String> methodsConfiguredInDeploymentXml = new HashSet<String>();
for (final Timer timer : timers) {
final NamedMethod namedMethod = timer.getTimeoutMethod();