@ SuppressWarnings ( "WeakerAccess" ) protected Object resolveModel ( Object responseBody ) { if ( responseBody instanceof ModelAndView ) { return ( ( ModelAndView ) responseBody ) . getModel ( ) . orElse ( null ) ; } return responseBody ; }
Resolves the model for the given response body . Subclasses can override to customize .