public SmartlingKeyEntry getSmartlingEntry(HttpServletRequest req, HttpServletResponse resp) {

        Enumeration en = req.getParameterNames();


        String projectid = "";
        String fileuri = "";
        String locale = "";

        List<String> allowedParams = Arrays.asList("fileUri", "projectId", "locale");

        while (en.hasMoreElements()) {

            String paramName = (String) en.nextElement();
            if (!allowedParams.contains(paramName)) {
                try {
                    resp.getWriter().println("Syntax Error !!! parameter:" + paramName + " is not allowed.list of allowed parameters is(" + allowedParams.toString() + ")");
                } catch (IOException e) {
                    e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
                }

            }


            if (paramName.equals("projectId")) {
                projectid = req.getParameter(paramName);
            }

            if (paramName.equals("fileUri")) {
                fileuri = req.getParameter(paramName);
            }

            if (paramName.equals("locale")) {
                locale = req.getParameter(paramName);
            }


        }


        if ( projectid.isEmpty() || fileuri.isEmpty() || locale.isEmpty() ) {
            log.severe("locale:" + locale + ".projectid:" + projectid + ".fileUri:" + fileuri);

            return null;
        } else

            return new SmartlingKeyEntry(projectid, locale,  fileuri);


    }