@@ -0,0 +1,1559 @@
+/**%0A * Copyright (C) 2016 Red Hat, Inc.%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 */%0Apackage com.redhat.ipaas.rest.v1.handler.integration;%0A%0Aimport com.redhat.ipaas.model.integration.Integration;%0Aimport com.redhat.ipaas.project.converter.ProjectGenerator;%0Aimport io.swagger.annotations.Api;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport javax.ws.rs.Consumes;%0Aimport javax.ws.rs.POST;%0Aimport javax.ws.rs.Path;%0Aimport javax.ws.rs.Produces;%0Aimport javax.ws.rs.core.MediaType;%0A%0A@Path(%22/integration-support%22)%0A@Api(value = %22integration-support%22)%0A@Component%0Apublic class IntegrationSupportHandler %7B%0A%0A    private final ProjectGenerator projectConverter;%0A%0A    public IntegrationSupportHandler( ProjectGenerator projectConverter) %7B%0A        this.projectConverter = projectConverter;%0A    %7D%0A%0A    @POST%0A    @Path(%22/generate/pom.xml%22)%0A    @Consumes(MediaType.APPLICATION_JSON)%0A    @Produces(MediaType.APPLICATION_OCTET_STREAM)%0A    public byte%5B%5D projectPom(Integration integration) %7B%0A        projectConverter.generatePom(integration);%0A    %7D%0A%0A%7D%0A

Add a POST /integration-support/generate/pom.xml api endpoint so that the UI can get a pom.xml for the integration currently being edited so it can pass it to the data mapper.