@@ -0,0 +1,1013 @@
+package org.apache.uima.graph.impl.mappings;%0A%0Aimport org.apache.uima.cas.FeatureStructure;%0Aimport org.apache.uima.graph.impl.DefaultIndicesNames;%0Aimport org.apache.uima.graph.impl.MappingUtils;%0Aimport org.apache.uima.jcas.cas.FSArray;%0A%0Aimport com.tinkerpop.blueprints.Edge;%0Aimport com.tinkerpop.blueprints.Graph;%0Aimport com.tinkerpop.blueprints.Vertex;%0A%0Apublic class DefaultFSArrayMapper extends DefaultFeatureStructureMapper %7B%0A%0A%09@Override%0A%09public void fillVertex(Vertex vertexForObj, Object obj, Graph graph) %7B%0A%09%09FSArray arr = MappingUtils.checkTypeAndCast(%0A%09%09%09DefaultFSArrayMapper.class,%0A%09%09%09FSArray.class,%0A%09%09%09obj);%0A%0A%09%09super.fillVertex(vertexForObj, obj, graph);%0A%0A%09%09FeatureStructure%5B%5D elems = arr.toArray();%0A%09%09for (int i = 0; i %3C elems.length; i++) %7B%0A%09%09%09FeatureStructure elem = elems%5Bi%5D;%0A%09%09%09Vertex elemVert = getMappingManager().enqueueObject(elem);%0A%09%09%09Edge e = vertexForObj.addEdge(%0A%09%09%09%09DefaultIndicesNames.HAS_ELEMENT.name(),%0A%09%09%09%09elemVert);%0A%09%09%09e.setProperty(DefaultIndicesNames.ELEMENT_I.name(), i);%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

add mapping of FSArray