Description
The code generated for ejbSelectxxxx methods does it's return type checking at runtime rather than generating code optimized for a given return type. In particular, for primitive types, it unboxes the values and then reboxes them again so the generated code can then unbox them once again. By having an execute method for each of the return possibilities, the runtime execution will be cleaner.