public static ShadingPattern getShadingPattern(Library library, Hashtable attribute) {
        // factory type approach, find shading entries and get type
        Hashtable shading =
                library.getDictionary(attribute, "Shading");
        if (shading != null) {
            return shadingFactory(library, attribute, shading);
        }
        return null;
    }