import java.io.ByteArrayInputStream;\r
import java.io.IOException;\r
\r
+import org.apache.poi.POIXMLDocumentPart;\r
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;\r
import org.apache.poi.openxml4j.opc.OPCPackage;\r
import org.apache.poi.openxml4j.opc.PackagePart;\r
try {\r
pkg = OPCPackage.open(new ByteArrayInputStream(metroBytes));\r
PackagePart shapePart = pkg.getPart(shapePN);\r
- CTGroupShape gs = CTGroupShape.Factory.parse(shapePart.getInputStream());\r
+ CTGroupShape gs = CTGroupShape.Factory.parse(shapePart.getInputStream(), POIXMLDocumentPart.DEFAULT_XML_OPTIONS);\r
XSLFGroupShape xgs = new XSLFGroupShape(gs, null);\r
return xgs.getShapes().get(0); \r
} finally {\r