@POST
    @Path("/postXTMData")
    public Response getMsg(
            @DefaultValue("4292") @QueryParam("jobId") String jobId,
            @DefaultValue("tcd") @QueryParam("username") String username,
            @DefaultValue("cngl1234") @QueryParam("password") String password,
            @DefaultValue("18") @QueryParam("userid") String userid)
            throws IOException, JSONException, TransformerConfigurationException, TransformerException {
        String output="";
        System.getProperties().put("proxySet", "true");
        System.getProperties().put("proxyHost", "www-proxy.cs.tcd.ie");
        System.getProperties().put("proxyPort", "8080");

      
        Long jL = Long.parseLong(jobId);
        Long uL = Long.parseLong(userid);
        //=============GET FILE FROM XTM
        XTMAPICustomerConfiguration configuration = new XTMAPICustomerConfiguration(username, uL, password);
        XTMAPICustomerScenarios scenarios = new XTMAPICustomerScenarios(configuration);

        //////////////////////// SCENARIOS ////////////////////////

        scenarios.getXTMInfo();
        scenarios.getSupportedFilesInfo();

        final XTMTemplateResponseAPI templateResponse = scenarios.createTemplate();

        if (templateResponse != null && templateResponse.getTemplateDescriptor() != null) {
            scenarios.obtainPMTemplateEditorLink(templateResponse.getTemplateDescriptor());
        }

        //List of job
        List<XTMJobDescriptorAPI> jobsDescriptors = new ArrayList<XTMJobDescriptorAPI>();
        XTMJobDescriptorAPI xjda = new XTMJobDescriptorAPI();

        //set job id describing desired job 4292L
        xjda.setId(jL);

        //add to job List
        jobsDescriptors.add(xjda);

        //download desired file  
        final XTMJobFileBaseResponseAPI jobFile = scenarios.generateJobFile(jobsDescriptors);
        final List<XTMFileDescriptorAPI> fileDescriptors = Collections.singletonList(jobFile.getFileDescriptor());
        scenarios.checkJobFileCompletion(fileDescriptors);
        scenarios.downloadJobFileMTOM(fileDescriptors);

        //unzip    
        //parse file and log
        File folder = new File("/home/finnle/falcon");
        File[] listOfFiles = folder.listFiles();

        for (File listOfFile : listOfFiles) {
            if (listOfFile.isFile()) {
                System.out.println("File " + listOfFile.getName());
            } else if (listOfFile.isDirectory()) {
                output = "Directory==" + listOfFile.getName();
                System.out.println(output);
            }
        }

        
        String tippFile=listOfFiles[0].toString(); 
        List<String> tippFileContents=Files.unpackTIPP(tippFile, "/home/finnle/falcon");
        String xliffFilename=tippFileContents.get(0);
        
        //convert to rdf
        output=ContentLogging.logging(xliffFilename, "falcon");
        
        //remove files

        return Response.status(200).entity(output).build();
    }