private EntityProperty GetEntityProperty(XElement xProperty) { XAttribute type = xProperty.Attribute("type"); if (type != null) { return GetEntityPropertyForType(type.Value, xProperty.Value); } else { return GetEntityPropertyByInference(xProperty.Value); } }