public SmartlingKeyEntry getSmartlingEntry(HttpServletRequest req, HttpServletResponse resp)
    {

        Enumeration en = req.getParameterNames();


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

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

        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("locale")) {
                locale = req.getParameter(paramName);
            }

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

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

        }


        if (locale.isEmpty() || projectid.isEmpty() || fileuri.isEmpty())
        {

            return null;
        }

        else

            return new SmartlingKeyEntry(projectid,locale,fileuri);


    }