< T > T unsafeParseResponse ( final TokenProxy < ? , ? > tokenProxy , final JavaType type , final Response response ) { checkRefresh ( tokenProxy , response ) ; try { return objectMapper . readValue ( response . getBody ( ) . in ( ) , type ) ; } catch ( final IOException e ) { throw new RuntimeException ( e ) ; } }
Parse the response into a type represented by the JavaType object . Checks for a refreshed token and updates the token repository accordingly . This method does not guarantee that the type parameter T represents the given JavaType . If possible use one of the safe parseResponse methods instead .