code: public static Term create(Element element) {
  		if (element instanceof StringProperty) {
              return create(((StringProperty) element).getValue());
  		} else if (element instanceof LongProperty) {
  			return create(((LongProperty) element).getValue().longValue());
  		} else {
  			throw EvaluationException.create(MSG_INVALID_ELEMENT_FOR_INDEX,
  					element.getTypeAsString());
  		}
  	}
docs: Create a term from a given element.
  
  @param element
  the element to create the term from