this is a private method, so nitpicky, but should probably be called: getContentTypeHeaderAsMediaType