This method of the Entity class retrieves the tag name from an external (system) or internal entity declaration.
public Name getTagName();
If the boolean sys variable is true, returns the tag name for an external entity declaration. Otherwise, returns the tag name for an internal entity declaration.