if one of the resources does not return a class, use the classes of the
other resources, which return a class