public MetadataContext GetContext()
{
MetadataContext context = new MetadataContext();
context.NodeUid = this.NodeUid;
context.MetadataName = this.OriginalMetadataName;
if (this.DescriptorTypeUid != Guid.Empty)
{
context.DescriptorTypeUid = this.DescriptorTypeUid;
}
if (this.RelationshipUid != Guid.Empty)
{
context.RelationshipUid = this.RelationshipUid;
}
return context;
}