protected Class<?> getClassFromAttribute(TagAttribute attribute, FaceletContext ctx) {
        String type = attribute.getValue(ctx);

        try {
            return LangUtils.loadClassForName(type);
        }
        catch (ClassNotFoundException e) {
            throw new FacesException("Class " + type + " not found.", e);
        }
    }
Gets the {@link Class} from the {@link TagAttribute}.

@param attribute The {@link TagAttribute}.
@param ctx       The {@link FaceletContext}.
@return The {@link Class}.
primefaces/src/main/java/org/primefaces/component/importconstants/ImportConstantsTagHandler.java