private String getFirstInvokedPropertyName(Expression expression) {
if (!(expression instanceof EvaluatedExpression)) {
return null;
}
List<Invocation> invocations = ((EvaluatedExpression)expression).invocations;
Invocation invocation = invocations.get(0);
if (invocation instanceof MethodInvocation) {
Method method = ((MethodInvocation)invocation).getMethod();
if (method == null && invocations.size() > 1) {
invocation = invocations.get(1);