[JAIEXT-22] Error on the jt-stats module

Please look at the following JIRA: https://geosolutions.atlassian.net/browse/JAIEXT-22