I\'m using the following block of code to call an external application:
String accessToken = "..."; HttpHeaders headers = new HttpHeaders(); headers