@Override
    public DialogFX build() {
        final DialogFX CONTROL = new DialogFX();

        for (String key : properties.keySet()) {
            if ("buttonsLabels".equals(key)) {
                CONTROL.addButtons(((ObjectProperty<List<String>>) properties.get(key)).get());
            } else if ("buttonsLabels1".equals(key)) {
                CONTROL.addButtons(((ObjectProperty<List<String>>) properties.get(key)).get(),
                        ((IntegerProperty) properties.get("buttonsDefaultButton")).get(),
                        ((IntegerProperty) properties.get("buttonsCancelButton")).get());
            } else if ("type".equals(key)) {
                CONTROL.setType(((ObjectProperty<DialogFX.Type>) properties.get(key)).get());
            } else if ("message".equals(key)) {
                CONTROL.setMessage(((StringProperty) properties.get(key)).get());
            } else if ("modal".equals(key)) {
                CONTROL.setModal(((BooleanProperty) properties.get(key)).get());
            } else if ("titleText".equals(key)) {
                CONTROL.setTitleText(((StringProperty) properties.get(key)).get());
            } else if ("stylesheet".equals(key)) {
                CONTROL.addStylesheet(((StringProperty) properties.get(key)).get());
            }
        }

        return CONTROL;
    }