Lockinfo lockinfo = new Lockinfo();
Lockscope lockscope = new Lockscope();
lockscope.setExclusive(new Exclusive());
lockinfo.setLockscope(lockscope);
Locktype locktype = new Locktype();
locktype.setWrite(new Write());
lockinfo.setLocktype(locktype);
StringWriter writer = new StringWriter();
WebDAVModelHelper.marshal(WebDAVModelHelper.createMarshaller(),
lockinfo,
writer,