public bool TryLoadObject(IGraph g, INode objNode, Type targetType, out object obj)
 {
     if (targetType == typeof (MockStorageServer))
     {
         var server = new MockStorageServer();
         var storeIdNode = g.CreateUriNode("http://www.dotnetrdf.org/configuration#storeId");
         foreach (var t in g.GetTriplesWithSubjectPredicate(objNode, storeIdNode))
         {
             var lit = t.Object as ILiteralNode;
             if (lit != null)
             {
                 server.AddStore(lit.Value);
             }
         }
         obj = server;
         return true;
     }
     obj = null;
     return false;
 }
 public bool TryLoadObject(IGraph g, INode objNode, Type targetType, out object obj)
 {
     if (targetType == typeof(MockStorageServer))
     {
         var server      = new MockStorageServer();
         var storeIdNode = g.CreateUriNode("http://www.dotnetrdf.org/configuration#storeId");
         foreach (var t in g.GetTriplesWithSubjectPredicate(objNode, storeIdNode))
         {
             var lit = t.Object as ILiteralNode;
             if (lit != null)
             {
                 server.AddStore(lit.Value);
             }
         }
         obj = server;
         return(true);
     }
     obj = null;
     return(false);
 }