fix issue 347
Merge pull request #409 from flytoj2ee/master

fix issue 347