JavaEE code snippets