@@ -0,0 +1,1575 @@
+package services.queryhandler;%0A%0Aimport com.typesafe.config.ConfigException;%0Aimport play.libs.ws.WSAuthScheme;%0Aimport play.libs.ws.WSClient;%0Aimport play.libs.ws.WSRequest;%0Aimport play.libs.ws.WSResponse;%0Aimport play.mvc.*;%0Aimport com.fasterxml.jackson.databind.JsonNode;%0Aimport play.libs.Json;%0A%0Aimport services.JiraInfo;%0Aimport services.Utils;%0A//import services.httpclient.JIRAconnector;%0Aimport services.languageProcessor.Processor;%0A%0Aimport javax.inject.Inject;%0Aimport java.io.IOException;%0Aimport java.lang.reflect.InvocationTargetException;%0Aimport java.util.concurrent.CompletionStage;%0A%0A%0A/**%0A * Created by wangxu on 30/09/2016.%0A */%0A//nafsdafsa%0A%0Apublic class Extractor %7B%0A    %0A    public static JsonNode extractJson(JsonNode json, String key)%7B%0A%0A%0A        if(json.get(%22errorMessages%22) != null)%7B%0A             return json.get(%22errorMessages%22);%0A        %7D%0A%0A        else %7B%0A%0A            if (key == %22description%22)%7B%0A                return json.get(%22fields%22).get(key);%0A            %7Delse if (key == %22assignee%22) %7B%0A                return json.get(%22assignee%22).get(%22name%22);%0A            %7D%0A        %7D%0A%0A        return null;%0A    %7D%0A%0A%0A    public static String extractString(JsonNode json, String key)%7B%0A%0A%0A        if(json.get(%22errorMessages%22) != null)%7B%0A            return json.get(%22errorMessages%22).toString();%0A        %7D%0A%0A        else%7B%0A%0A            if (key == %22description%22)%7B%0A                return json.get(%22fields%22).get(key).toString();%0A            %7D else if (key == %22assignee%22) %7B%0A                return json.get(%22assignee%22).get(%22name%22).toString();%0A            %7D%0A        %7D%0A%0A        return %22%22;%0A    %7D%0A%7D%0A

add extractor class