* @param receiver a {@link TransportReceiver}
* @return a {@link RequestCallback} instance
*/
protected RequestCallback createRequestCallback(
final TransportReceiver receiver) {
return new RequestCallback() {
public void onError(Request request, Throwable exception) {
wireLogger.log(Level.SEVERE, SERVER_ERROR, exception);
receiver.onTransportFailure(new ServerFailure(exception.getMessage()));
}