docs: public static Literal getAttributeLiteral(Tag tag, String attrName) throws EvaluatorException {
  	Attribute attr = tag.getAttribute(attrName);
  	if (attr != null && attr.getValue() instanceof Literal) return ((Literal) attr.getValue());
  	throw new EvaluatorException("attribute [" + attrName + "] must be a constant value");
      }