fixed javadoc
fixed endless loop
heuristic workaround grape/ivy not thread safe issue