fix critical sonar bugs in ejb