code: public <T> ITypeResolver getResolverForType(Class<T> type) {
          ITypeResolver resolver = typeResolversByType.get(type);
          if (resolver == null) {
              return defaultResolver;
          } else {
              return resolver;
          }
      }
docs: Gets the ITypeResolver that was registered for the specified type.
  
  @param type the class for which to find the ITypeResolver.
  @param <T>  the type resolved by the ITypeResolver.
  @return the ITypeResolver implementation that was earlier registered for the given class, or the default ITypeResolver
  if none is found.