Less use of reflection.
Nice entity registration exception handling.