JRChild child = (JRChild) it.next();
if (child instanceof JRElement)
{
JRElement element = (JRElement) child;
// clone the element in order to set the frame as group
element = (JRElement) element.clone(frame);
if (width != originalWidth)
{
scaleCellElement(element, originalWidth, width);
if (element instanceof JRElementGroup)//i.e. frame