public Object createObject(Attributes attributes) {
    JRDesignCrosstabRowGroup group = new JRDesignCrosstabRowGroup();

    setGroupAtts(attributes, group);

    String widthAttr = attributes.getValue(ATTRIBUTE_width);
    if (widthAttr != null) {
      group.setWidth(Integer.parseInt(widthAttr));
    }

    String posAttr = attributes.getValue(ATTRIBUTE_headerPosition);
    if (posAttr != null) {
      Byte pos = (Byte) JRXmlConstants.getCrosstabRowPositionMap().get(posAttr);
      group.setPosition(pos.byteValue());
    }

    return group;
  }
  public Object createObject(Attributes attributes) {
    JRDesignCrosstabRowGroup group = new JRDesignCrosstabRowGroup();

    setGroupAtts(attributes, group);

    String widthAttr = attributes.getValue(ATTRIBUTE_width);
    if (widthAttr != null) {
      group.setWidth(Integer.parseInt(widthAttr));
    }

    CrosstabRowPositionEnum position =
        CrosstabRowPositionEnum.getByName(attributes.getValue(ATTRIBUTE_headerPosition));
    if (position != null) {
      group.setPosition(position);
    }

    return group;
  }