[Demonstration 1]

[Buggy Method]
public void changePassword(final ChangePasswordRequest changePasswordRequest) throws UserAccountException {
    final ClientResponse<?> clientResponse = resourceProxy.changePassword(changePasswordRequest);
    validateResponseSuccess(clientResponse, UserAccountException.class);
}

[Buggy Hunk]
validateResponseSuccess(clientResponse, UserAccountException.class);

[Patch]
validateResponseAndReleaseConnection(clientResponse, UserAccountException.class);

[Demonstration 2]

[Buggy Method]
public void voidEnvelope(final String envelopeId, final VoidEnvelopeRequest voidEnvelopeRequest) throws EnvelopeException {
    final ClientResponse<?> clientResponse = resourceProxy.voidEnvelope(envelopeId, voidEnvelopeRequest);
    validateResponseSuccess(clientResponse, EnvelopeException.class);
}

[Buggy Hunk]
validateResponseSuccess(clientResponse, EnvelopeException.class);

[Patch]
validateResponseAndReleaseConnection(clientResponse, EnvelopeException.class);