/**
  * Creates a new typed reference to the specified attachment.
  *
  * @param fileName the file name
  * @param wikiPageReference a reference to the wiki page that holds the attachment
  */
 public AttachmentReference(String fileName, WikiPageReference wikiPageReference) {
   this(wikiPageReference.getEntityReference().clone());
   entityReference.setType(EntityType.ATTACHMENT);
   setFileName(fileName);
 }
 /** Default constructor. */
 public AttachmentReference() {
   this(new EntityReference());
   entityReference.setType(EntityType.ATTACHMENT);
 }