@Override
public Class findContentDeserializer(Annotated am) {
if (am.hasAnnotation(ObjectId.class)) {
JavaType type = deserializationConfig.getTypeFactory().constructType(am.getGenericType());
if (type.isCollectionLikeType()) {
return findObjectIdDeserializer(type.containedType(0));
} else if (type.isMapLikeType()) {
return findObjectIdDeserializer(type.containedType(1));
}
}
return null;