public Object getValue() {
Method method = descriptor.getReadMethod();
try {
return method.invoke(requestHolder.getTilesRequestContext());
} catch (IllegalArgumentException e) {
throw new CannotAccessMethodException(
"Arguments are wrong for property '"
+ descriptor.getName() + "'", e);
} catch (IllegalAccessException e) {
throw new CannotAccessMethodException(
"Cannot access getter method for property '"
+ descriptor.getName() + "'", e);
} catch (InvocationTargetException e) {
throw new CannotAccessMethodException(
"The getter method for property '"
+ descriptor.getName() + "' threw an exception",
e);
}
}