STS-3431: additional minor optimization to avoid too many duplicate calls to ClassUtils.loadClass(..)