public static <T, Y> ModelLoader<T, Y> buildModelLoader(Class<T> modelClass, Class<Y> resourceClass,
            Context context) {
         if (modelClass == null) {
            if (Log.isLoggable(TAG, Log.DEBUG)) {
                Log.d(TAG, "Unable to load null model, setting placeholder only");
            }
            return null;
        }
        return Glide.get(context).getLoaderFactory().buildModelLoader(modelClass, resourceClass);
    }
Build a {@link ModelLoader} for the given model class using registered {@link ModelLoaderFactory}s.

@see  #buildModelLoader(Object, Class, Context)
@see  #buildStreamModelLoader(Class, Context)
@see  #buildFileDescriptorModelLoader(Class, Context)

@param modelClass The class to get a {@link ModelLoader} for.
@param resourceClass The resource class to get a {@link ModelLoader} for.
@param context Any context.
@param <T> The type of the model.
@param <Y> The type of the resource.
@return A new {@link ModelLoader} for the given model class.
core/src/main/java/com/bumptech/glide/Glide.java