@Override
    public void printApplication(Employee employee, HttpServletResponse httpServletResponse, XMLGenerator xmlGenerator, Map<String, String[]> parameterMap, HttpSession httpSession)
    {
        udane = false;
        String selectedOperation = null;
        if (parameterMap.get("Dalej") != null)
        {
            selectedTableName = parameterMap.get("tabliceSlownikowe")[0];
            selectedOperation = parameterMap.get("operacje")[0];

            if (selectedOperation.equals(dictionaryTablesOperations[0]))
            {
                generateAddDataForm(xmlGenerator);
            }
            else if (selectedOperation.equals(dictionaryTablesOperations[1]))
            {
                generateEditDataForm(xmlGenerator);
            }
            else if (selectedOperation.equals(dictionaryTablesOperations[2]))
            {
                generateDeleteDataForm(xmlGenerator);
            }
        }

        if (parameterMap.get("Dodaj") != null)
        {
            validateAndNormalizeData(parameterMap);
            if (formErrorsList.isEmpty())               // jeżeli nie ma błędów to można wpisać dane do bazy
            {
                addData();
            }
            else
            {
                printFormErrors(xmlGenerator);
            }
        }
        else if (parameterMap.get("Edytuj") != null)
        {
            editData(parameterMap);
        }

        if (parameterMap.get("Kasuj") != null)
        {
            deleteData(parameterMap);
        }

        if (!udane)
        {
            generateDictionaryTablesForm(xmlGenerator);
        }
    }