IContainerArea containerArea = new BlockContainerArea(content); IStyle style = containerArea.getStyle();  if(!isFirst) { style.setProperty(IStyle.STYLE_BORDER_TOP_WIDTH, IStyle.NUMBER_0); style.setProperty(IStyle.STYLE_PADDING_TOP, IStyle.NUMBER_0); style.setProperty(IStyle.STYLE_MARGIN_TOP, IStyle.NUMBER_0); }  if(!isLast) { style.setProperty(IStyle.STYLE_BORDER_BOTTOM_WIDTH, IStyle.NUMBER_0); style.setProperty(IStyle.STYLE_PADDING_BOTTOM, IStyle.NUMBER_0); style.setProperty(IStyle.STYLE_MARGIN_BOTTOM, IStyle.NUMBER_0); } return containerArea;
return new BlockContainerArea( content );
	public static IContainerArea createBlockContainer(IContent content, boolean isFirst, boolean isLast)	{		IContainerArea containerArea = new BlockContainerArea(content);		IStyle style = containerArea.getStyle();		//remove top padding, border and margin if it is not the first child		if(!isFirst)		{			style.setProperty(IStyle.STYLE_BORDER_TOP_WIDTH, IStyle.NUMBER_0);			style.setProperty(IStyle.STYLE_PADDING_TOP, IStyle.NUMBER_0);			style.setProperty(IStyle.STYLE_MARGIN_TOP, IStyle.NUMBER_0);		}		//remove bottom padding, border and margin if it is not the last child		if(!isLast)		{			style.setProperty(IStyle.STYLE_BORDER_BOTTOM_WIDTH, IStyle.NUMBER_0);			style.setProperty(IStyle.STYLE_PADDING_BOTTOM, IStyle.NUMBER_0);			style.setProperty(IStyle.STYLE_MARGIN_BOTTOM, IStyle.NUMBER_0);		}		return containerArea;	}