public Attachment getDocument() { 
      if (this.document == null)
        if (Configuration.errorOnAutoCreate())
          throw new Error("Attempt to auto-create RelatedArtifact.document");
        else if (Configuration.doAutoCreate())
          this.document = new Attachment(); // cc
      return this.document;
    }
public Attachment getDocument ( ) { if ( this . document == null ) if ( Configuration . errorOnAutoCreate ( ) ) throw new Error ( "Attempt to auto-create RelatedArtifact.document" ) ; else if ( Configuration . doAutoCreate ( ) ) this . document = new Attachment ( ) ; return this . document ; }
@return {@link #document} (The document being referenced, represented as an attachment. This is exclusive with the resource element.)