Refactor reflection service to detect class loader isolation issue and disable asm