code: private Object getValue(Entry entry, Class type) {
          Object value = entry.getValue();
          if (type== Expression.class)
              value = new ConstantExpression(entry.getValue());
          return value;
      }
docs: Obtains the value from the map entry in the right type.