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