@@ -0,0 +1,1764 @@
+/*%0A * Copyright 2000-2014 JetBrains s.r.o.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A * http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.jetbrains.teamcity.widgets;%0A%0Aimport org.apache.http.HttpEntity;%0Aimport org.apache.http.HttpResponse;%0Aimport org.apache.http.client.methods.HttpGet;%0Aimport org.apache.http.impl.client.DefaultHttpClient;%0Aimport org.apache.http.util.EntityUtils;%0A%0Aimport javax.servlet.*;%0Aimport java.io.IOException;%0A%0A%0Apublic class JsonResponseHelper implements Servlet %7B%0A  public void init(ServletConfig servletConfig) throws ServletException %7B%0A  %7D%0A%0A  public ServletConfig getServletConfig() %7B%0A    return null;%0A  %7D%0A%0A  public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException %7B%0A%0A    DefaultHttpClient client = new DefaultHttpClient();%0A%0A    HttpGet httpget = new HttpGet(%22http://buildserver/app/rest/investigations%22);%0A    httpget.setHeader(%22Authorization%22, %22Basic %3Cencoded credentials%3E%22);%0A    httpget.setHeader(%22Accept%22, %22application/json%22);%0A%0A    HttpResponse response = client.execute(httpget);%0A    HttpEntity entity = response.getEntity();%0A    servletResponse.getWriter().write(EntityUtils.toString(entity));%0A%0A  %7D%0A%0A%0A  public String getServletInfo() %7B%0A    return null;%0A  %7D%0A%0A%0A  public void destroy() %7B%0A  %7D%0A%7D%0A

add fixed version of json helper