//user already exists!
throw new RepositoryException("A principal already exists with the requested name: " + principalName);
} else {
Map<String, RequestProperty> reqProperties = collectContent(request, response);
User user = userManager.createUser(principalName, digestPassword(pwd));
String userPath = AuthorizableResourceProvider.SYSTEM_USER_MANAGER_USER_PREFIX + user.getID();
response.setPath(userPath);
response.setLocation(externalizePath(request, userPath));
response.setParentLocation(externalizePath(request, AuthorizableResourceProvider.SYSTEM_USER_MANAGER_USER_PATH));