if (WidgetType.SCRIPT.equals(widgetType)) { return new PTScript(); }
if (WidgetType.PUSHER.equals(widgetType)) { return new PTPusher(); }
if (WidgetType.TERMINAL_SCHEDULED_COMMAND.equals(widgetType)) { return new PTTerminalScheduledCommand(); }
if (WidgetType.WINDOW.equals(widgetType)) { return new PTWindow(); }
if (WidgetType.HEADER_PANEL.equals(widgetType)) { return new PTHeaderPanel(); }
if (WidgetType.ADDON.equals(widgetType)) { return new PTAddOn(); }
Window.alert("UIFactory: Client implementation not found, type : " + widgetType);
return null;
}