diff --git a/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/SynapseArtifactGenerator.java b/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/SynapseArtifactGenerator.java index e6aaea5f17ff..b05f7e4ed571 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/SynapseArtifactGenerator.java +++ b/components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/SynapseArtifactGenerator.java @@ -17,7 +17,6 @@ */ package org.wso2.carbon.apimgt.rest.api.publisher.v1.common; -import com.fasterxml.jackson.databind.ObjectMapper; import com.google.gson.Gson; import org.apache.axiom.om.OMElement; import org.apache.commons.io.FileUtils; @@ -39,7 +38,6 @@ import org.wso2.carbon.apimgt.api.model.SwaggerData; import org.wso2.carbon.apimgt.api.model.graphql.queryanalysis.GraphqlComplexityInfo; import org.wso2.carbon.apimgt.impl.APIConstants; -import org.wso2.carbon.apimgt.impl.dao.ApiMgtDAO; import org.wso2.carbon.apimgt.impl.definitions.GraphQLSchemaDefinition; import org.wso2.carbon.apimgt.impl.definitions.OAS3Parser; import org.wso2.carbon.apimgt.impl.dto.APIRuntimeArtifactDto; @@ -48,7 +46,6 @@ import org.wso2.carbon.apimgt.impl.gatewayartifactsynchronizer.GatewayArtifactGenerator; import org.wso2.carbon.apimgt.impl.importexport.utils.CommonUtil; import org.wso2.carbon.apimgt.impl.utils.APIUtil; -import org.wso2.carbon.apimgt.impl.utils.GatewayUtils; import org.wso2.carbon.apimgt.rest.api.publisher.v1.common.mappings.APIMappingUtil; import org.wso2.carbon.apimgt.rest.api.publisher.v1.common.mappings.ImportUtils; import org.wso2.carbon.apimgt.rest.api.publisher.v1.dto.APIDTO; @@ -60,15 +57,10 @@ import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; -import java.util.HashMap; -import java.util.LinkedHashMap; import java.util.List; -import java.util.Map; import javax.xml.namespace.QName; import javax.xml.stream.XMLStreamException; -import static org.wso2.carbon.apimgt.impl.utils.APIUtil.handleException; - /** * This class used to generate Synapse Artifact. */ @@ -81,7 +73,6 @@ public class SynapseArtifactGenerator implements GatewayArtifactGenerator { private static final Log log = LogFactory.getLog(SynapseArtifactGenerator.class); private static final String GATEWAY_EXT_SEQUENCE_PREFIX = "WSO2AMGW--Ext"; - private static final ApiMgtDAO apiMgtDao = ApiMgtDAO.getInstance(); @Override public RuntimeArtifactDto generateGatewayArtifact(List apiRuntimeArtifactDtoList)