private void writeElements(Writer outputStream, SerializationContext context) throws IOException {
context.incDepth();
for(XMLElementSerializationNode element : elements) {
if(element.isCollection) {
NodeGetter collectionNodeGetter = element.getCollectionGetter();
Getter collectionGetter = collectionNodeGetter.getter;
Object collectionObject;
List<?> collection = null;
if (collectionGetter instanceof GetterGraph) {
collectionObject = context.getValue(((GetterGraph) collectionGetter).getContextObjectName(), collectionGetter);