input.read(widgetData);
SpoutInputStream data = new SpoutInputStream(ByteBuffer.wrap(widgetData));
int version = input.readShort();
screen = new UUID(msb, lsb);
WidgetType widgetType = WidgetType.getWidgetFromId(id);
if (widgetType != null) {
try {
widget = widgetType.getWidgetClass().newInstance();
if (widget.getVersion() == version) {
widget.readData(data);
}
} catch (Exception e) {
e.printStackTrace();