private boolean saveTicket(Ticket ticket) throws ParseException, SQLException {
        boolean newTicket;
        boolean ret=false;

        if(ticket.getTicketId()==null){
            newTicket=true;
        }else{
            newTicket=false;
        }

        if (validateCreateTicket()) {
            ticket.setContactFirstname(txtCreateTicketPrename.getText());
            ticket.setContactLastname(txtCreateTicketSurename.getText());
            ticket.setContactEmail(txtCreateTicketEmail.getText());
            ticket.setContactPhone(txtCreateTicketTel.getText());
            if(txtCreateTicketTargetDate.getText().equals("")){
                ticket.setTargetDate(null);
            }else{
                DateFormat formatter;
                formatter = new SimpleDateFormat("yyyy-MM-dd");
                ticket.setTargetDate(formatter.parse(txtCreateTicketTargetDate.getText()));
            }
            ticket.setCreationDate(new Date());

            ticket.setTitle(txtCreateTicketTicketTitle.getText());
            ticket.setTicketId(_currentTicket.getTicketId());
            ticket.setUserIdCreate(_veneraSession.getUserId());
            ticket.setWorkingTime(Integer.parseInt(txtCreateTicketHourSummary.getText()));
            ticket.setContactByEmail(emailCheckBox.isSelected());
            ticket.setContactByPhone(telCheckBox.isSelected());
            if(_currentTicket.getStateId()==null){
                ComboBoxItem cmbTmp = (ComboBoxItem)cmbBoxDescriptionType.getSelectedItem();
                ticket.setStateId((UUID)cmbTmp.getValue());
            }
            ticket.setStateId(_currentTicket.getStateId());

            ComboBoxItem cbItm = (ComboBoxItem)cmbCreateTicketPriority.getSelectedItem();
            ticket.setPriorityId((UUID)cbItm.getValue());
            cbItm = (ComboBoxItem)cmbCreateTicketBoxRegion.getSelectedItem();
            ticket.setRelatedRegionId((UUID) cbItm.getValue());
            cbItm = (ComboBoxItem)cmbCreateTicketBoxPerson.getSelectedItem();
            ticket.setRelatedPersonId((UUID) cbItm.getValue());
            cbItm = (ComboBoxItem)cmbCreateTicketCategory.getSelectedItem();
            ticket.setCategoryId((UUID) cbItm.getValue());

            cbItm = (ComboBoxItem)cmbCreateTicketEditor.getSelectedItem();
            if(cbItm.getValue()==null){
                ticket.setUserIdEdit(null);
            }else{
                ticket.setUserIdEdit((UUID) cbItm.getValue());
            }

            try {
                UUID ticketIdsave = getTicketData().save(ticket);
                _currentTicket.setTicketId(ticketIdsave);
                if( ticketIdsave == null ) {
                    JOptionPane.showMessageDialog(null, "Fehler beim Speichern des Tickets.", "Ticket", JOptionPane.ERROR_MESSAGE);
                }else{
                    if(newTicket){
                        saveComment();
                        txtCreateTicketBeschreibung.setText("");
                        tbtCreateTicketCommeent.setSelectedIndex(0);
                        ret=true;
                    }
                }
            } catch (SQLException e) {
                LOGGER.error(e.getMessage());
                JOptionPane.showMessageDialog(null, "Fehler beim Speichern des Tickets:\n" + e.getMessage(), "Ticket", JOptionPane.ERROR_MESSAGE);
            }
        }

        return ret;
    }