HttpHeaders headers = new HttpHeaders();
if (!accessToken.equals(token)) {
headers.set("Status", "403 Forbidden");
return new HttpEntity<>("{ \"message\": \"Forbidden\" }\n", headers);
}
SpelExpressionParser parser = new SpelExpressionParser();
Expression spel = parser.parseExpression(template, new TemplateParserContext());
Map<?, ?> push;
try {
push = this.objectMapper.readValue(payload, Map.class);
logger.info("Recieved new webhook payload for push with head_commit message: "