}
if (namespaceConfig.isPrincipal(associatedObject.getUri())) {
// principals must have DAV:displayname
if (revisionDescriptor.getName() == null || revisionDescriptor.getName().length() == 0) {
UriPath uripath = new UriPath(associatedObject.getUri());
revisionDescriptor.setName(uripath.lastSegment());
}
// principals must have DAV:principal in resourcetype
String rt = revisionDescriptor.getResourceType();
if (rt.indexOf("principal") < 0) {
revisionDescriptor.setResourceType(rt+"<principal/>");