public Representation(MediaType mediaType) { super((Logger) null); this.characterSet = null; this.contentAvailable = true; this.contentTransient = false; this.encoding = null; this.size = UNKNOWN_SIZE; this.expirationDate = null; this.language = null; this.mediaType = mediaType; this.modificationDate = null; this.resource = null; this.tag = null;    if ((getVariants() != null) && !getVariants().contains(this)) { getVariants().add(this); }
public Representation() { this(null);
    public Representation(MediaType mediaType) {        super((Logger) null);        this.characterSet = null;        this.contentAvailable = true;        this.contentTransient = false;        this.encoding = null;        this.size = UNKNOWN_SIZE;        this.expirationDate = null;        this.language = null;        this.mediaType = mediaType;        this.modificationDate = null;        this.resource = null;        this.tag = null;        // A representation is also a resource whose only        // variant is the representation itself        if ((getVariants() != null) && !getVariants().contains(this)) {            getVariants().add(this);        }    }