// org.dmd.dms.util.GenUtility.formatSV(GenUtility.java:877)
  public void setEmbedSchema(Object value) throws DmcValueException {
    DmcTypeXsSchemaREFSV attr = (DmcTypeXsSchemaREFSV) get(DmwsdlDMSAG.__embedSchema);
    if (attr == null) attr = new DmcTypeXsSchemaREFSV(DmwsdlDMSAG.__embedSchema);
    else attr.removeBackReferences();

    attr.set(value);
    set(DmwsdlDMSAG.__embedSchema, attr);
  }
  // org.dmd.dms.util.GenUtility.formatSV(GenUtility.java:655)
  public XsSchemaREF getEmbedSchema() {
    DmcTypeXsSchemaREFSV attr = (DmcTypeXsSchemaREFSV) get(DmwsdlDMSAG.__embedSchema);
    if (attr == null) return (null);

    if (DmcOmni.instance().lazyResolution()) {
      if (attr.doLazyResolution(this)) {
        rem(attr.getAttributeInfo());
        return (null);
      }
    }

    return (attr.getSV());
  }
  // org.dmd.dms.util.GenUtility.formatSV(GenUtility.java:709)
  public void setEmbedSchema(XsSchemaDMO value) {
    DmcAttribute<?> attr = get(DmwsdlDMSAG.__embedSchema);
    if (attr == null) attr = new DmcTypeXsSchemaREFSV(DmwsdlDMSAG.__embedSchema);
    else ((DmcTypeXsSchemaREFSV) attr).removeBackReferences();

    try {
      attr.set(value);
      set(DmwsdlDMSAG.__embedSchema, attr);
    } catch (DmcValueException ex) {
      throw (new IllegalStateException(
          "The type specific set() method shouldn't throw exceptions!", ex));
    }
  }
  /** Returns the reference to XsSchema without attempting lazy resolution (if turned on). */
  public XsSchemaREF getEmbedSchemaREF() {
    DmcTypeXsSchemaREFSV attr = (DmcTypeXsSchemaREFSV) get(DmwsdlDMSAG.__embedSchema);
    if (attr == null) return (null);

    return (attr.getSV());
  }