public Object get(final T contextObject) throws BeanSerializationException {
try {
return getterMethod.invoke(contextObject);
} catch (IllegalArgumentException e) {
throw new BeanSerializationException("Error invoking bean getter method '" + getterMethod.getName() + "' on bean type '" + contextObject.getClass().getName() + "'.", e);
} catch (IllegalAccessException e) {
throw new BeanSerializationException("Error invoking bean getter method '" + getterMethod.getName() + "' on bean type '" + contextObject.getClass().getName() + "'.", e);
} catch (InvocationTargetException e) {
throw new BeanSerializationException("Error invoking bean getter method '" + getterMethod.getName() + "' on bean type '" + contextObject.getClass().getName() + "'.", e.getCause());
}
}