Service declaration into Extension instead of CompilerPass
Handle null JMS context
Move protected to private
Use ClassUtils::getClass