public void GetRelatedItem(string project, string app, string resource, string id, string related, string relatedId, string format) { try { //format = MapContentType(project, app, format); XDocument xDocument = _adapterProvider.GetRelatedItem(project, app, resource, id, related, relatedId, ref format); _adapterProvider.FormatOutgoingMessage(xDocument.Root, format); } catch (Exception ex) { throw ex; } }