@SuppressWarnings("unchecked")
    public static <T, Y> ModelLoader<T, Y> buildModelLoader(T model, Class<Y> resourceClass, Context context) {
        return buildModelLoader(model != null ? (Class<T>) model.getClass() : null, resourceClass, context);
    }
A convenience method to build a {@link ModelLoader} for a given model object using registered
{@link ModelLoaderFactory}s.

@see #buildModelLoader(Class, Class, Context)

@param model A non null model object whose class we will 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 and resource classes, or null if model is null.
core/src/main/java/com/bumptech/glide/Glide.java