Remove duplicate license header
Actually use ra variable.

Reuse the variable instead of calling a reflexive method multiple times
Update to kundera 2.14
Cache local entity manager