/// <summary>
        /// Initializes a new instance of the <see cref="ComponentMapMutableCore"/> class.
        /// </summary>
        /// <param name="compMap">
        /// The comp map. 
        /// </param>
        public ComponentMapMutableCore(IComponentMapObject compMap)
            : base(compMap)
        {
            if (compMap.MapConceptRef != null)
            {
                this.mapConceptRef = compMap.MapConceptRef;
            }

            if (compMap.MapTargetConceptRef != null)
            {
                this.mapTargetConceptRef = compMap.MapTargetConceptRef;
            }

            if (compMap.RepMapRef != null)
            {
                this.repMapRef = new RepresentationMapRefMutableCore(compMap.RepMapRef);
            }
        }
        /// <summary>
        /// The process component.
        /// </summary>
        /// <param name="componentMapType">
        /// The component map type.
        /// </param>
        /// <param name="componentMapBean">
        /// The component map bean.
        /// </param>
        private void ProcessComponent(ComponentMapType componentMapType, IComponentMapObject componentMapBean)
        {
            if (componentMapBean.MapConceptRef != null)
            {
                componentMapType.MapConceptRef = componentMapBean.MapConceptRef;
            }

            if (componentMapBean.MapTargetConceptRef != null)
            {
                componentMapType.MapTargetConceptRef = componentMapBean.MapTargetConceptRef;
            }

            if (componentMapBean.RepMapRef != null)
            {
                if (componentMapBean.RepMapRef.ToTextFormat != null)
                {
                    var textForamtType = new TextFormatType();
                    componentMapType.ToTextFormat = textForamtType;
                    this.PopulateTextFormatType(textForamtType, componentMapBean.RepMapRef.ToTextFormat);
                }

                switch (componentMapBean.RepMapRef.ToValueType)
                {
                    case ToValue.Description:
                        componentMapType.ToValueType = ToValueTypeTypeConstants.Description;
                        break;
                    case ToValue.Name:
                        componentMapType.ToValueType = ToValueTypeTypeConstants.Name;
                        break;
                    case ToValue.Value:
                        componentMapType.ToValueType = ToValueTypeTypeConstants.Value;
                        break;
                }
            }
        }