// Persist the user
User persistentUser = userReadService.saveOrUpdate(user);
// Provide a representation to the client
Representation representation = new AdminUserRepresentation().get(persistentUser, Optional.of(adminUser));
URI location = uriInfo.getAbsolutePathBuilder().path(persistentUser.getId().toString()).build();
return created(representation,location);
}