import java.lang.String;
int start=requestBodyTextFromClient.indexOf("access_token")+16;
int end=requestBodyTextFromClient.indexOf("\"",start+1);
String token=requestBodyTextFromClient.substring(start,end);
requestHeaderMapToTargetAPI.put("Authorization","Bearer " + token);
GROOVY