@@ -0,0 +1,890 @@
+package org.codelibs.elasticsearch.util;%0A%0Aimport org.elasticsearch.action.ActionListener;%0A%0Apublic final class ListenerUtils %7B%0A    private ListenerUtils() %7B%0A    %7D%0A%0A    public static %3CResponse%3E ActionListener%3CResponse%3E on(%0A            final OnResponseListener%3CResponse%3E responseListener,%0A            final OnFailureListener failureListener) %7B%0A        return new ActionListener%3CResponse%3E() %7B%0A%0A            @Override%0A            public void onResponse(Response response) %7B%0A                responseListener.onResponse(response);%0A            %7D%0A%0A            @Override%0A            public void onFailure(Throwable e) %7B%0A                failureListener.onFailure(e);%0A            %7D%0A        %7D;%0A    %7D%0A%0A    public interface OnResponseListener%3CResponse%3E %7B%0A        public void onResponse(Response response);%0A    %7D%0A%0A    public interface OnFailureListener %7B%0A        public void onFailure(Throwable t);%0A    %7D%0A%7D%0A

add ListenerUtils