private object GetObjectByHref(string href, IFrameworkFacade facade, UriMtHelper helper, IOidStrategy oidStrategy) {
     string[] oids = helper.GetObjectId(href);
     if (oids != null) {
         var oid = facade.OidTranslator.GetOidTranslation(oids[0] + "/" + oids[1]);
         return facade.GetObject(oid).Target?.Object;
     }
     string typeName = helper.GetTypeId(href);
     return facade.GetDomainType(typeName);
 }
        private object GetObjectByHref(string href, IFrameworkFacade facade, UriMtHelper helper, IOidStrategy oidStrategy)
        {
            string[] oids = helper.GetObjectId(href);
            if (oids != null)
            {
                var oid = facade.OidTranslator.GetOidTranslation(oids[0] + "/" + oids[1]);
                return(facade.GetObject(oid).Target?.Object);
            }
            string typeName = helper.GetTypeId(href);

            return(facade.GetDomainType(typeName));
        }
        private static object GetObjectByHref(string href, IFrameworkFacade facade, UriMtHelper helper, IOidStrategy oidStrategy)
        {
            var oids = UriMtHelper.GetObjectId(href);

            if (oids != null)
            {
                var oid = facade.OidTranslator.GetOidTranslation($"{oids.Value.type}/{oids.Value.key}");
                return(facade.GetObject(oid).Target?.Object);
            }

            var typeName = UriMtHelper.GetTypeId(href);

            return(facade.GetDomainType(typeName));
        }
        private static bool SameSpec(string name, ITypeFacade otherSpec, IFrameworkFacade facade)
        {
            var thisSpec = facade.GetDomainType(name);

            return(thisSpec.IsOfType(otherSpec));
        }