fix for GEOT-4703
Merge pull request #367 from geosolutions-it/10.x

 fix for GEOT-4703