@POST @Path("authorize") @Consumes(MediaType.APPLICATION_JSON) public String addParticipant(AuthorizationNode participant) { try { return getAccountabilityManager() .authorize(Util.URLdecode(Util.URLdecode(provenanceId)), participant.getAddress(), participant.getIdentity()) .exceptionally(error -> null) .get(); } catch (InterruptedException | ExecutionException | AccountabilityException e) { LOGGER.error("Cannot authorize participant {}. Reason: {}", participant.getAddress(), e.getMessage()); throw createException(e); } }