STANBOL-1144: Basically applied the patch provided by Tom Lomax. Only made some adaptions to get better DEBUG level loggings.

git-svn-id: https://svn.apache.org/repos/asf/stanbol/trunk@1513097 13f79535-47bb-0310-9956-ffa450edef68