STS-3278: fixed a problem with the classloader-aware mechanism that is used inside the AutowireDependencyProvider