writer.open(prefix, localName);
WrappedHref wrappedHref = (WrappedHref) val;
if( wrappedHref != null && wrappedHref.getValue() != null ) {
//TODO: Replace explicit namespace declaration with reference to constant
Element hrefEl = writer.begin(WebDavProtocol.NS_DAV.getPrefix(),"href" ).open();
hrefEl.writeText( wrappedHref.getValue() );
hrefEl.close();
}
writer.close(prefix, localName);
}