Fix context classloader usage

Changing current thread's context classloader is not the best idea, as it may produce unpredictable behaviour in the server.
`Util.doUnderContextClassLoader` will set context classloader, do the job and then revert context classloader