ElementFactory factory = row.getElementFactory( );
	public static boolean createTableGroup( RowHandle row )	{		Assert.isNotNull( row );		ElementFactory factory = row.getElementFactory( );		try		{			TableHandle table = null;			DesignElementHandle container = row.getContainer( );			int slotId = row.getContainerSlotHandle( ).getSlotID( );			int position = -1;			if ( container instanceof TableGroupHandle )			{				table = (TableHandle) ( (TableGroupHandle) container ).getContainer( );				position = DEUtil.findInsertPosition( table.getGroups( )						.getElementHandle( ), container, table.getGroups( )						.getSlotID( ) );			}			else if ( container instanceof TableHandle )			{				table = (TableHandle) container;				if ( slotId == TableItem.DETAIL_SLOT )				{					position = -1;				}				else if ( slotId == TableItem.HEADER_SLOT						|| slotId == TableItem.FOOTER_SLOT )				{					position = 0;				}			}			else			{				return false;			}			return addGroup( factory, table, position );		}		catch ( SemanticException e )		{			ExceptionHandler.handle( e );			return false;		}	}