{
return new ObjectArgument(descriptor.getReadMethod().invoke(bean));
}
catch (IllegalAccessException e)
{
throw new UnableToCreateStatementException(String.format("Access excpetion invoking getter for " +
"bean property [%s] on [%s]",
name, bean), e);
}
catch (InvocationTargetException e)
{
throw new UnableToCreateStatementException(String.format("Invocation target exception invoking " +
"getter for bean property [%s] on [%s]",
name, bean), e);
}
}
}