if (visitedIDs.contains(id)) {
// cyclic reference - returning null for the inner most reference
return null;
}
visitedIDs.add(id);
ObjectChainList list = getChainList(id);
List<Property> properties =
list.getObjectChainList(0).getObjectListList().get(0).getPropertyListList();
String className =
list.getObjectChainListList().get(0).getObjectList(0).getValue().getClassName();
if (className.endsWith("Element")) {
return new OperaWebElement(driver, id);
} else if (className.equals("Array")) {
List<Object> result = Lists.newArrayList();