final String type = instruction.getString(TYPE.KEY);
if (TYPE.KEY_.CREATE.equals(type)) {
final WidgetType widgetType = WidgetType.values()[instruction.getInt(WIDGETTYPE.KEY)];
if (WidgetType.SCHEDULER.equals(widgetType)) {
final Long pid = instruction.getLong(PROPERTY.OBJECT_ID);
uiObjectByID.put(pid, new UIMockScheduler(pid));
}
} else if (TYPE.KEY_.UPDATE.equals(type)) {
final Long pid = instruction.getLong(PROPERTY.OBJECT_ID);
final UIMock uiMock = uiObjectByID.get(pid);
if (uiMock != null) uiMock.update(this, instruction);