Moved shadow size setting helper method to the core.
Implemented lightning hook in Javassist.