public CNode describeForSchema(Owner instance, ConfigurationContext context) {
        final Configurator c = context.lookup(type);
        if (c == null) {
            return new Scalar("FAILED TO EXPORT\n" + instance.getClass().getName() + "#" + name
                    + ": No configurator found for type " + type);
        }
        try {
            Object o = getType();
            if (o == null) {
                return null;
            }

            // In Export we sensitive only those values which do not get rendered as secrets
            boolean shouldBeMasked = isSecret(instance);
            if (multiple) {
                Sequence seq = new Sequence();
                if (o.getClass().isArray()) {
                    o = Collections.singletonList(o);
                }
                if (o instanceof Iterable) {
                    for (Object value : (Iterable) o) {
                        seq.add(_describe(c, context, value, shouldBeMasked));
                    }
                }
                return seq;
            }
            return _describe(c, context, o, shouldBeMasked);
        } catch (Exception e) {
            // Don't fail the whole export, prefer logging this error
            LOGGER.log(Level.WARNING, "Failed to export", e);
            return new Scalar(
                    "FAILED TO EXPORT\n" + instance.getClass().getName() + "#" + name + ": " + printThrowable(e));
        }
    }
This function is for the JSONSchemaGeneration
@param instance Owner Instance
@param context Context to be passed
@return CNode object describing the structure of the node
plugin/src/main/java/io/jenkins/plugins/casc/Attribute.java