public static Anchor GetAnchor(Properties attributes)
{
Anchor anchor = new Anchor(GetPhrase(attributes));
String value;
value = attributes[ElementTags.NAME];
if (value != null) {
anchor.Name = value;
}
value = (String)attributes.Remove(ElementTags.REFERENCE);
if (value != null) {
anchor.Reference = value;
}
return anchor;
}