various snippets for JEE platform