STS-2309: added thread context classloader handling