[hibernate-issues] [JIRA] (HSEARCH-3162) Fix bugs and vulnerabilities detected by Sonar - 20180516