- private Codec<Object, Object> getCodec(final Class<?> valueType, final TypeDefinition<?> instantiatedType) {
- @SuppressWarnings("rawtypes")
- TypeDefinition rootType = instantiatedType;
- while (rootType.getBaseType() != null) {
- rootType = rootType.getBaseType();
- }
- if (rootType instanceof IdentityrefTypeDefinition) {
+ private Codec<Object, Object> getCodecForBindingClass(final Class<?> valueType, final TypeDefinition<?> typeDef) {
+ if (typeDef instanceof IdentityrefTypeDefinition) {