String instanceId = getNextTextValue("sid", parser); // get
// instanceId
String layoutId = getNextTextValue("cid", parser); // get
// layoutId
LayoutInstance layoutInstance = new LayoutInstance();
layoutInstance.setCid(layoutId);
layoutInstance.setSid(Long.valueOf(instanceId));
layoutInThisSegment.add(layoutInstance);
current = parser.nextToken(); // move to field: regions
assertExpectedFiled(parser.getCurrentName(), "regions", parser.getCurrentLocation());
layoutInstance.setRegions(parseRegions(parser, segment));
assertExpectedJsonToken((current = parser.nextToken()), JsonToken.END_OBJECT, parser.getCurrentLocation());
}
return layoutInThisSegment;