@POST
    @Path("/postGlobicData")
    public Response postGlobicData(
            @DefaultValue("2070_test") @QueryParam("componentName") String componentName,
            @DefaultValue("test") @QueryParam("partitionName") String partitionName,
            @DefaultValue("cngl1") @QueryParam("password") String password,
            @DefaultValue("translate_12345") @QueryParam("activity") String activity,
            @DefaultValue("finnle") @QueryParam("user") String user,
            @DefaultValue("http://kdeg-vm-13.scss.tcd.ie/2070.xlf") @QueryParam("contentConsumed1") String contentConsumed1,
            @DefaultValue("nif:String") @QueryParam("contentConsumed1Type") String contentConsumed1Type,
            @QueryParam("contentGenerated1") String contentGenerated1,
            @QueryParam("contentGenerated1Type") String contentGenerated1Type,
            @DefaultValue("consumed") @QueryParam("contentJobType") String contentJobType) throws IOException, JSONException {
        

        String output = "empty";
        
        System.getProperties().put("proxySet", "true");
        System.getProperties().put("proxyHost", "www-proxy.cs.tcd.ie");
        System.getProperties().put("proxyPort", "8080");
        
        UrlValidator uv=new UrlValidator();
        boolean isValidURL=uv.isValid(contentConsumed1);
        
        if(isValidURL==true){
            try {
                RepositoryHandler handler = new RepositoryHandler("http://phaedrus.scss.tcd.ie/CS3BC2/group6/tomcat/alfresco/cmisatom", "admin", "admin", 1);
                output=handler.sendContentToCMS(contentConsumed1, activity, user, password, contentJobType, contentConsumed1Type, componentName,partitionName);
            } catch (IOException ex) {
                return Response.status(400).entity(ex.toString()).build();

            }

            if(output.equals("empty")){
                return Response.status(400).entity("Please check file link is correct").build();
            }else

            if(output.contains("Current stage:Parsing")){
                return Response.status(400).entity("Please check the input file as there is a parse error with the file").build();
            }else{
                 return Response.status(200).entity(output).build();
            }

        }else{
            return Response.status(400).entity("URL is not valid. Please make sure URL is of the form http://www.example.com/filename.xml or https://www.example.com/filename.xml").build();
        }
    }