code: public Metadata copy()
     {
        Metadata result = new Metadata();
        result.setEncoding(encoding);
        result.setTrailingSlash(trailingSlash);
        result.setLeadingSlash(leadingSlash);
        return result;
     }
docs: Return a copy of this Metadata