}
@SuppressWarnings("unchecked") private <T> Converter<T> getDefaultConverter(Class<T> clazz, String key) {
Converter<T> converter;
if (IRiakObject.class.isAssignableFrom(clazz)) {
converter = (Converter<T>) new PassThroughConverter();
} else {
if (key != null) {
converter = new JSONConverter<T>(clazz, name, key);
} else {
converter = new JSONConverter<T>(clazz, name);