final public boolean addChild(final IRunningQuery childQuery){
synchronized (children) {
    final UUID childId=childQuery.getQueryId();
    if (children.containsKey(childId)) {
      return false;
    }
    if (future.isDone()) {
      childQuery.cancel(true);
      throw new RuntimeException("Query is done");
    }
    children.put(childId,childQuery);
    return true;
  }
}

final public boolean addChild ( final IRunningQuery childQuery ) { synchronized ( children ) { final UUID childId = childQuery . getQueryId ( ) ; if ( children . containsKey ( childId ) ) { return false ; } if ( future . isDone ( ) ) { childQuery . cancel ( true ) ; throw new RuntimeException ( "Query is done" ) ; } children . put ( childId , childQuery ) ; return true ; } }
attach a child query . < p > queries as submitted do not know about parent / child relationships
