String apiKey; try { apiKey = getParam(request.params(), MASTER_KEY.getKey()); } catch (Exception e) { apiKey = request.headers().get(MASTER_KEY.getKey()); String collection = getParam(request.params(), "collection"); String apiKey = getParam(request.params(), MASTER_KEY.getKey()); String project = apiKeyService.getProjectOfApiKey(apiKey, MASTER_KEY); String collection = getParam(request.params(), "collection"); String apiKey = getParam(request.params(), MASTER_KEY.getKey()); String project = apiKeyService.getProjectOfApiKey(apiKey, MASTER_KEY); String collection = getParam(request.params(), "collection");