class FooterPresenter {

    RequestCallback makeCallback(final Command onSuccess, final Command onError) {
        return new RequestCallback() {

            public void onResponseReceived(final Request request,
                                           final Response response) {
                if (isKieServerAccessible(response)) {
                    onSuccess.execute();
                } else {
                    onError.execute();
                }
            }

            public void onError(final Request request,
                                final Throwable exception) {
                onError.execute();
            }
        };
    }

    @Inject public  FooterPresenter(final View view);

}