}
if (elementNameTagAttributeSet)
{
// This is unlikely, but theorically possible.
return new TagAttributesImpl(Arrays.copyOf(convertedTagAttributes, sourceTagAttributes.length));
}
else
{
convertedTagAttributes[tagAttributes.getAll().length] = elementNameTagAttribute;
return new TagAttributesImpl(convertedTagAttributes);
}
}