$base_obj =
new Value();
$base_obj->depth =
$o->depth;
if ($o->access_path
) { $base_obj->access_path = 'iterator_to_array('.
$o->access_path.')';
} $r =
new Representation('Iterator'
);
$r->contents =
$this->parser->
parse($data,
$base_obj);
$r->contents =
$r->contents->value->contents;
$primary =
$o->
getRepresentations();
$primary = \
reset($primary);
if ($primary &&
$primary ===
$o->value &&
[] ===
$primary->contents
) { $o->
addRepresentation($r, 0
);
} else { $o->
addRepresentation($r);
} }}