refactoring method names doBegin/doEnd => setClassLoader/unsetClassLoader