throws
TemplateModelException
{
Class clazz = object.getClass();
Map classInfo = wrapper.getClassKeyMap(clazz);
TemplateModel retval = null;
try
{
if(wrapper.isMethodsShadowItems())
{
Object fd = classInfo.get(key);
if(fd != null)
{
retval = invokeThroughDescriptor(fd, classInfo);
} else {
retval = invokeGenericGet(classInfo, clazz, key);
}
}
else
{
TemplateModel model = invokeGenericGet(classInfo, clazz, key);
final TemplateModel nullModel = wrapper.wrap(null);
if(model != nullModel && model != UNKNOWN)
{
return model;
}
Object fd = classInfo.get(key);