private StringShortProperty GetOrCreateMetadataProperty(PropertyCollection collection, SecurityToken token) { StringShortProperty property = collection[Metadata.PropertyNameSelectedMetadata] as StringShortProperty; if (property == null) property = collection.CreateStringShortProperty(Metadata.PropertyNameSelectedMetadata, false, false, true, token); return property; }