if ( !( partition instanceof AvlPartition ) )
{
throw new IllegalArgumentException( "Partition must be a AvlPartition" );
}
AvlPartition avlPartition = ( AvlPartition ) partition;
Set<Index<?, Entry, Long>> indexedAttributes = avlPartition.getIndexedAttributes();
AvlIndex<Object, Entry> index = new AvlIndex<Object, Entry>( attributeId );
//index.setCacheSize( cacheSize );
indexedAttributes.add( index );
avlPartition.setIndexedAttributes( indexedAttributes );
}