Cloned from https://bitbucket.org/bompani/cmdbuild-unibo/src
Original author: Luca Bompani