if ( style.isLocalKey( ElementStyleKeys.PADDING_TOP ) && style.isLocalKey( ElementStyleKeys.PADDING_LEFT )
&& style.isLocalKey( ElementStyleKeys.PADDING_BOTTOM ) && style.isLocalKey( ElementStyleKeys.PADDING_RIGHT ) ) {
final double paddingTop = style.getDoubleStyleProperty( ElementStyleKeys.PADDING_TOP, 0 );
final double paddingLeft = style.getDoubleStyleProperty( ElementStyleKeys.PADDING_LEFT, 0 );
final double paddingBottom = style.getDoubleStyleProperty( ElementStyleKeys.PADDING_BOTTOM, 0 );
final double paddingRight = style.getDoubleStyleProperty( ElementStyleKeys.PADDING_RIGHT, 0 );
if ( paddingTop == paddingLeft && paddingTop == paddingRight && paddingTop == paddingBottom ) {
bandStyleAtts.setAttribute( BundleNamespaces.STYLE, "padding", absoluteLengthFormat.format( paddingTop ) );
final double value = style.getDoubleStyleProperty( ElementStyleKeys.PADDING_TOP, 0 );
bandStyleAtts.setAttribute( BundleNamespaces.STYLE, "padding-top", absoluteLengthFormat.format( value ) );
final double value = style.getDoubleStyleProperty( ElementStyleKeys.PADDING_LEFT, 0 );
bandStyleAtts.setAttribute( BundleNamespaces.STYLE, "padding-left", absoluteLengthFormat.format( value ) );
final double value = style.getDoubleStyleProperty( ElementStyleKeys.PADDING_BOTTOM, 0 );
bandStyleAtts.setAttribute( BundleNamespaces.STYLE, "padding-bottom", absoluteLengthFormat.format( value ) );
final double value = style.getDoubleStyleProperty( ElementStyleKeys.PADDING_RIGHT, 0 );
bandStyleAtts.setAttribute( BundleNamespaces.STYLE, "padding-right", absoluteLengthFormat.format( value ) );
&& style.isLocalKey( ElementStyleKeys.BORDER_BOTTOM_WIDTH )
&& style.isLocalKey( ElementStyleKeys.BORDER_RIGHT_WIDTH ) ) {
final double top = style.getDoubleStyleProperty( ElementStyleKeys.BORDER_TOP_WIDTH, 0 );
final double left = style.getDoubleStyleProperty( ElementStyleKeys.BORDER_LEFT_WIDTH, 0 );
final double bottom = style.getDoubleStyleProperty( ElementStyleKeys.BORDER_BOTTOM_WIDTH, 0 );
final double right = style.getDoubleStyleProperty( ElementStyleKeys.BORDER_RIGHT_WIDTH, 0 );
if ( top == left && top == right && top == bottom ) {
bandStyleAtts.setAttribute( BundleNamespaces.STYLE, "border-width", absoluteLengthFormat.format( top ) );