}catch(Exception e){
logger.error(e.getMessage());
}
returnComp = comp;
}else if (gfxElem instanceof SVGOMPolylineElement){
SVGOMPolylineElement polyLineElem = (SVGOMPolylineElement)gfxElem;
//Create Vertex[] from points
SVGPointList pointList = polyLineElem.getPoints();
Vertex[] vertices = new Vertex[pointList.getNumberOfItems()];
for (int i = 0; i < pointList.getNumberOfItems(); i++) {
SVGPoint p = pointList.getItem(i);
vertices[i] = new Vertex(p.getX(), p.getY(),0);
}