log.trace( "check permissions with: " + permissionService.getClass() );
}
Set<PropertyAuthoriser.CheckResult> errorFields = permissionService.checkPermissions( HttpManager.request(), Method.PROPPATCH, PropertyAuthoriser.PropertyPermission.WRITE, fields.keySet(), wrappedResource );
if( errorFields != null && errorFields.size() > 0 ) {
log.trace( "authorisation errors" );
throw new NotAuthorizedException( wrappedResource );
} else {
log.trace( "setting properties" );
PropFindResponse resp = patchSetter.setProperties( encodedUrl, parseResult, wrappedResource );
if( eventManager != null ) {
log.trace( "fire event" );