      :headers {CONTENT_TYPE_HEADER (str (:format concept) "; charset=utf-8")
                CORS_ORIGIN_HEADER "*"}
      :body body}))
+
+(defn- find-concept-by-cmr-concept-id
+  "Invokes query service to find concept metadata by cmr concept id and returns the response"
+  [context path-w-extension params headers]
+  (let [result-format (get-search-results-format path-w-extension headers
+                                                 supported-concept-id-retrieval-mime-types
+                                                 "application/xml")
+        concept-id (path-w-extension->concept-id path-w-extension)
+        _ (info (format "Search for concept with cmr-concept-id [%s]" concept-id))]
+    (if (contains? #{:atom :json} result-format)
+      (get-feed-concept-by-id context params result-format concept-id)
+      (get-transformed-concept-by-id context params headers result-format concept-id))))
 
 (defn- get-provider-holdings
   "Invokes query service to retrieve provider holdings and returns the response"

        results (query-svc/find-concepts-by-aql context params aql)]
    (search-response params results)))

(defn- find-concept-by-cmr-concept-id
  "Invokes query service to find concept metadata by cmr concept id and returns the response"
  [context path-w-extension params headers]
  (let [result-format (get-search-results-format path-w-extension headers
                                                 supported-concept-id-retrieval-mime-types
                                                 "application/xml")
        concept-id (path-w-extension->concept-id path-w-extension)
        _ (info (format "Search for concept with cmr-concept-id [%s]" concept-id))
        concept (query-svc/find-concept-by-id context result-format concept-id)
        {:keys [metadata]} concept
        body (if (api/pretty-request? params headers)
               (cx/pretty-print-xml metadata)

  #{"*/*"
    "application/xml" ; allows retrieving native format
    "application/metadata+xml" ; retrieve in native format
    "application/atom+xml"
    "application/json"
    "application/echo10+xml"
    "application/iso19115+xml"
    "application/iso:smap+xml"
