Log more about the error
Fixes #4993#note-8 : patch the "good" hosted by node and ignore the one inside resource, if any.
merged branch dsm into trunk
integrated (hopefully) all required changes from dnet40
codebase used to migrate to java8 the production system