FilterDefnUtil.saveFilterDefn( dos, groupDefn.getFilters( ) ); QueryDefnUtil.saveSorts( dos, groupDefn.getSorts( ) );
	static void saveGroupDefn( OutputStream outputStream,			List groupList ) throws DataException	{		DataOutputStream dos = new DataOutputStream( outputStream );		int size = groupList == null ? 0 : groupList.size( );		try		{			IOUtil.writeInt( dos, size );			for ( int i = 0; i < size; i++ )			{				IGroupDefinition groupDefn = (IGroupDefinition) groupList.get( i );				IOUtil.writeString( dos, groupDefn.getName( ) );				IOUtil.writeString( dos, groupDefn.getKeyColumn( ) );				IOUtil.writeString( dos, groupDefn.getKeyExpression( ) );				IOUtil.writeInt( dos, groupDefn.getInterval( ) );				IOUtil.writeDouble( dos, groupDefn.getIntervalRange( ) );				IOUtil.writeInt( dos, groupDefn.getSortDirection( ) );				QueryDefnUtil.saveSubQuery( dos, groupDefn.getSubqueries( ) );			}						dos.flush( );		}		catch ( IOException e )		{			throw new DataException( ResourceConstants.RD_SAVE_ERROR, e );		}	}