{
public Object createObject(Attributes attrs) throws Exception
{
JasperDesign jasperDesign = (JasperDesign)digester.peek(digester.getCount() - 2);
JRDesignGenericElement element = new JRDesignGenericElement(jasperDesign);
EvaluationTimeEnum evaluationTime = EvaluationTimeEnum.getByName(attrs.getValue(JRXmlConstants.ATTRIBUTE_evaluationTime));
if (evaluationTime != null)
{
element.setEvaluationTime(evaluationTime);
}
if (element.getEvaluationTimeValue() == EvaluationTimeEnum.GROUP)
{
String groupName = attrs.getValue(JRXmlConstants.ATTRIBUTE_evaluationGroup);
if (groupName != null)
{
element.setEvaluationGroupName(groupName);
}
}
return element;
}