public PTObject newUIObject(final UIService uiService, final PTInstruction create) {
final WidgetType widgetType = WidgetType.values()[create.getInt(WIDGETTYPE.KEY)];
if (WidgetType.BUTTON.equals(widgetType)) { return new PTButton(); }
if (WidgetType.ANCHOR.equals(widgetType)) { return new PTAnchor(); }
if (WidgetType.ROOT_LAYOUT_PANEL.equals(widgetType)) { return new PTRootLayoutPanel(); }
if (WidgetType.ROOT_PANEL.equals(widgetType)) { return new PTRootPanel(); }
if (WidgetType.LAYOUT_PANEL.equals(widgetType)) { return new PTLayoutPanel(); }
if (WidgetType.TAB_LAYOUT_PANEL.equals(widgetType)) { return new PTTabLayoutPanel(); }
if (WidgetType.ABSOLUTE_PANEL.equals(widgetType)) { return new PTAbsolutePanel(); }
if (WidgetType.TAB_PANEL.equals(widgetType)) { return new PTTabPanel(); }