if (currElement instanceof CompoundElement) {
CompoundElement comp = (CompoundElement) currElement;
for (Object handler : comp.getHandlers()) {
if (handler instanceof CompoundSelector) {
CompoundSelector selector = (CompoundSelector) handler;
isDone = selector.isDone();
}
}
}
if (currElement.getParent() != null) {