DefaultTypeResolver implementation.