@@ -0,0 +1,881 @@
+package innovimax.mixthem.rest.services;%0A%0Aimport innovimax.mixthem.MixException;%0Aimport innovimax.mixthem.Rule;%0A%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.io.OutputStream;%0Aimport java.io.StringReader;%0A%0Aimport javax.ws.rs.core.Response;%0Aimport javax.ws.rs.core.StreamingOutput;%0A%0Apublic abstract class AbstractServiceImpl %7B%0A%0A    protected Response getStreamResponse(Rule rule, String text1, String text2) %7B%0A        final StreamingOutput output = new ServiceOutput(rule, new StringReader(text1), new StringReader(text2));%0A        return Response.ok(output).build(); %0A    %7D%0A%0A    protected Response getStreamResponse(Rule rule, InputStream input1, InputStream input2) %7B%0A        final StreamingOutput output = new ServiceOutput(rule, new InputStreamReader(input1), new InputStreamReader(input2));%0A        return Response.ok(output).build(); %0A    %7D%0A    %0A%7D%0A

Create AbstractServiceImpl.java