}
// summer logic
if(view != null){
mavContainer.setView(view);
ResponseViews viewAnn = AnnotationUtils.findAnnotation(
returnType.getMethod(), ResponseViews.class);
if (view instanceof SmartView) {
if (((SmartView) view).isRedirectView()) {
mavContainer.setRedirectModelScenario(true);
}
}
else if (viewAnn != null){
Class<? extends AbstractResponseView>[] values = viewAnn.value();
List<AbstractView> views = new ArrayList<AbstractView>();
boolean explicit = viewAnn.explicit();
if (values.length != 0) {
for (Class<? extends AbstractResponseView> value : values) {
views.addAll(BeanUtils.getBeansOfType(value).values());
}
}
view = (AbstractResponseView) viewResolverConfiguration.handleViews(views, webRequest);
if (explicit) {
view = views.get(0);
}
}
}
else{
ResponseViews viewAnn = AnnotationUtils.findAnnotation(
returnType.getMethod(), ResponseViews.class);
if (viewAnn != null){
Class<? extends AbstractResponseView>[] values = viewAnn.value();
List<AbstractView> views = new ArrayList<AbstractView>();
boolean explicit = viewAnn.explicit();
if (values.length != 0) {
for (Class<? extends AbstractResponseView> value : values) {
views.addAll(BeanUtils.getBeansOfType(value).values());
}