IRI r = new IRI(getUri());
cl = r.resolve(cl);
}
String base = (cl != null) ? cl.toASCIIString() : getUri();
Document<T> doc = parser.parse(getReader(), base, options);
EntityTag etag = getEntityTag();
if (etag != null) doc.setEntityTag(etag);
Date lm = getLastModified();
if (lm != null) doc.setLastModified(lm);
MimeType mt = getContentType();
if (mt != null) doc.setContentType(mt.toString());