*/
public synchronized ObjectInstantiator getInstantiatorOf(Class clazz) {
if (cache == null) {
return strategy.newInstantiatorOf(clazz);
}
ObjectInstantiator instantiator = (ObjectInstantiator) cache.get(clazz.getName());
if (instantiator == null) {
instantiator = strategy.newInstantiatorOf(clazz);
cache.put(clazz.getName(), instantiator);
}
return instantiator;