STANBOL-1132: applied the patch provided by Cristian Petroaca on the 28/Oct/13. I have made some minor modifications to account for the SpanTypeEnum that was moved to an own file. Also some formatting related changes where made

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