public class JRTemplateStyleFactory extends JRAbstractStyleFactory
{
protected void setParentStyle(JRDesignStyle currentStyle, String parentStyleName)
{
JRSimpleTemplate template = (JRSimpleTemplate) digester.peek(digester.getCount() - 1);
JRStyle parent = template.getStyle(parentStyleName);
if (parent == null)
{
currentStyle.setParentStyleNameReference(parentStyleName);
}