public Object evaluate(AttributeRef attributeRef) {
if (object == null) {
throw new LajaException("Can not call method with null reference");
}
String methodOrAttributeName;
Args methodArguments;
if (attributeRef.isMethodRef()) {
methodOrAttributeName = attributeRef.getMethodName();
methodArguments = attributeRef.getMethodArguments();
} else {
methodOrAttributeName = attributeRef.getVariableName();
methodArguments = new Args();
}
Object result = null;
try {