* store is not a KiWi store.
*
* @return
*/
public KiWiStore getBaseStore() {
StackableSail current = this;
while(current != null && current.getBaseSail() instanceof StackableSail) {
current = (StackableSail) current.getBaseSail();
}
if(current != null && current.getBaseSail() instanceof KiWiStore) {
return (KiWiStore) current.getBaseSail();
} else {
throw new IllegalStateException("the base store is not a KiWiStore (type: "+current.getBaseSail().getClass().getCanonicalName()+")!");
}
}