    public void update(final PTInstruction update, final UIService uiService) {
        if (update.containsKey(PROPERTY.WIDGET_WIDTH)) {
            uiObject.setWidth(update.getString(PROPERTY.WIDGET_WIDTH));
        } else if (update.containsKey(PROPERTY.WIDGET_HEIGHT)) {
            uiObject.setHeight(update.getString(PROPERTY.WIDGET_HEIGHT));
        } else if (update.containsKey(PROPERTY.WIDGET_FONT_SIZE)) {
            uiObject.getElement().getStyle().setProperty(FONT_SIZE, update.getString(PROPERTY.WIDGET_FONT_SIZE));
        } else if (update.containsKey(PROPERTY.STYLE_NAME)) {
            uiObject.setStyleName(update.getString(PROPERTY.STYLE_NAME));
        } else if (update.containsKey(PROPERTY.ADD_STYLE_NAME)) {
            uiObject.addStyleName(update.getString(PROPERTY.ADD_STYLE_NAME));
        } else if (update.containsKey(PROPERTY.REMOVE_STYLE_NAME)) {
            uiObject.removeStyleName(update.getString(PROPERTY.REMOVE_STYLE_NAME));
        } else if (update.containsKey(PROPERTY.WIDGET_VISIBLE)) {
            uiObject.setVisible(update.getBoolean(PROPERTY.WIDGET_VISIBLE));
        } else if (update.containsKey(PROPERTY.ENSURE_DEBUG_ID)) {
            uiObject.ensureDebugId(update.getString(PROPERTY.ENSURE_DEBUG_ID));
        } else if (update.containsKey(PROPERTY.WIDGET_TITLE)) {
            uiObject.setTitle(update.getString(PROPERTY.WIDGET_TITLE));
        } else if (update.containsKey(PROPERTY.STYLE_KEY)) {
            uiObject.getElement().getStyle().setProperty(update.getString(PROPERTY.STYLE_KEY), update.getString(PROPERTY.STYLE_VALUE));
        }
    }

    public void update(final PTInstruction update, final UIService uiService) {
        if (update.containsKey(PROPERTY.WIDGET_WIDTH)) {
            uiObject.setWidth(update.getString(PROPERTY.WIDGET_WIDTH));
        } else if (update.containsKey(PROPERTY.WIDGET_HEIGHT)) {
            uiObject.setHeight(update.getString(PROPERTY.WIDGET_HEIGHT));
        } else if (update.containsKey(PROPERTY.WIDGET_FONT_SIZE)) {
            uiObject.getElement().getStyle().setProperty(FONT_SIZE, update.getString(PROPERTY.WIDGET_FONT_SIZE));
        } else if (update.containsKey(PROPERTY.STYLE_NAME)) {
            uiObject.setStyleName(update.getString(PROPERTY.STYLE_NAME));
        } else if (update.containsKey(PROPERTY.STYLE_PRIMARY_NAME)) {
            uiObject.setStylePrimaryName(update.getString(PROPERTY.STYLE_PRIMARY_NAME));
        } else if (update.containsKey(PROPERTY.ADD_STYLE_NAME)) {
            uiObject.addStyleName(update.getString(PROPERTY.ADD_STYLE_NAME));
        } else if (update.containsKey(PROPERTY.REMOVE_STYLE_NAME)) {
            uiObject.removeStyleName(update.getString(PROPERTY.REMOVE_STYLE_NAME));
        } else if (update.containsKey(PROPERTY.WIDGET_VISIBLE)) {
            uiObject.setVisible(update.getBoolean(PROPERTY.WIDGET_VISIBLE));
        } else if (update.containsKey(PROPERTY.ENSURE_DEBUG_ID)) {
            uiObject.ensureDebugId(update.getString(PROPERTY.ENSURE_DEBUG_ID));
        } else if (update.containsKey(PROPERTY.WIDGET_TITLE)) {
            uiObject.setTitle(update.getString(PROPERTY.WIDGET_TITLE));
        } else if (update.containsKey(PROPERTY.STYLE_KEY)) {
            uiObject.getElement().getStyle().setProperty(update.getString(PROPERTY.STYLE_KEY), update.getString(PROPERTY.STYLE_VALUE));
        }
    }
