Fixes for issue #451. Enabled Kundera to deployable over jee7 container.