currentStyles.styles = null; // No initial style set.
currentStyles.numFillBits = numFillBits;
currentStyles.numLineBits = numLineBits;
// Create ShapeWithStyle tag.
final Shape shapes = new Shape();
shapes.setNumFillBits(numFillBits);
shapes.setNumLineBits(numLineBits);
// Read ShapeRecords and passing in the style context.
final List<ShapeRecord> shapeRecords = readShapeRecords(tagType, shapes, currentStyles);
shapes.addShapeRecords(shapeRecords);
return shapes;
}