private final Class nativeType;
private final NativeMapped instance;
public static NativeMappedConverter getInstance(Class cls) {
synchronized(converters) {
Reference r = (Reference)converters.get(cls);
NativeMappedConverter nmc = r != null ? (NativeMappedConverter)r.get() : null;
if (nmc == null) {
nmc = new NativeMappedConverter(cls);
converters.put(cls, new SoftReference(nmc));
}
return nmc;