in src/main/java/org/apache/fineract/cn/api/util/CookieInterceptingClient.java [66:74]
public void apply(final RequestTemplate template) {
try {
final Map<String, List<String>> cookieHeaders =
cookieManager.get(mapUriType(target + template.url()), mapHeadersType(template.headers()));
cookieHeaders.entrySet().forEach(entry -> template.header(entry.getKey(), entry.getValue()));
} catch (final IOException e) {
throw new IllegalStateException("Mapping cookies failed unexpectedly.");
}
}