String instanceId = getNextTextValue("sid", parser); // get
// instanceId
String widgetId = getNextTextValue("cid", parser); // get
// widgetId
WidgetInstance widgetInstance = new WidgetInstance();
widgetInstance.setCid(widgetId);
widgetInstance.setSid(Long.valueOf(instanceId));
widgetInThisRegion.add(widgetInstance);
assertExpectedJsonToken((current = parser.nextToken()), JsonToken.END_OBJECT, parser.getCurrentLocation());
}