/// <summary>
 /// Gets the contents of a XML resource specified by its XRM URI.
 /// </summary>
 /// <param name="resourceUri">XRM URI of the requested resource</param>
 /// <returns>requested XML resource or null the there is no such a
 /// resource corresponding to the provided XRM URI or the resource is
 /// empty</returns>
 public XDocument GetXmlResource(XrmUri resourceUri)
 {
     XDocument content = storage.LoadXml();
     XDocument result = resourceUri.GetResource(content);
     return result;
 }
 private XDocument GetXrmResource(XrmUri xrmUri)
 {
     XDocument xrmContent = nodeSelectionManager.AppConfig.GetXrmContent();
     XDocument result = xrmUri.GetResource(xrmContent);
     return result;
 }