code: public static Anchor getAnchor(Properties attributes) {
  		Anchor anchor = new Anchor(getPhrase(attributes));
  		String value;
  		value = attributes.getProperty(ElementTags.NAME);
  		if (value != null) {
  			anchor.setName(value);
  		}
  		value = (String) attributes.remove(ElementTags.REFERENCE);
  		if (value != null) {
  			anchor.setReference(value);
  		}
  		return anchor;
  	}
docs: Creates an Anchor object based on a list of properties.
  @param attributes
  @return an Anchor