} else if (v.getResolvingClass() != null) {
return resolveRelativeViewable(v, v.getResolvingClass());
} else {
final List<Object> mrs = ui.getMatchedResources();
if (mrs == null || mrs.size() == 0)
throw new TemplateContextException("There is no last matching resource available");
return resolveRelativeViewable(v, mrs.get(0).getClass());
}
}