Annotation[] annotations = method.getAnnotations();
for (Annotation annotation : annotations)
{
Class<? extends Annotation> annotationType = annotation.annotationType();
NavigationInfo navigationInfo = annotationType.getAnnotation(NavigationInfo.class);
if (navigationInfo != null)
{
tempReader = ReflectHelper.createInstance(navigationInfo.value(), NavigationReader.class);
tempAnnotation = annotation;
}
}
if (tempReader != null)