private static EntityServiceException unwrap(final Throwable th) {
        return unwrap(th, th, 10);
    }
Unwrap an exception and log it if required.
stroom-util/src/main/java/stroom/util/EntityServiceExceptionUtil.java