if(null != converter) {
return converter;
}
Class converterClass= (Class) m_converters.get(clazz);
if(null == converterClass) {
throw new IncorrectAtomicTypeException("No registered converter for a field based on the class :'" + clazz + "'");
}
try {
converter= (AtomicTypeConverter) converterClass.newInstance();
m_converterInstances.put(clazz, converter);
}
catch(Exception ex) {
throw new IncorrectAtomicTypeException(
"Cannot create converter instance from class '" + clazz + "'", ex);
}
return converter;