I was trying to write a generic FunctionalInterface to pass to .thenCompose, because I've many places in my code where I run similar code. What actually differ is the 3rd party API I call and of course the request/response

is there a way to generalize that?

liubo404

@liubo404

How to lambda this statements? simplify and clean, produce one line presentation?