// XXX Of course, this only works if all the data is local.
// When there is a server side to this demo, we will always have to authenticate with it before
// we can produce a User instance capable of syncing.
List<User> users = em.createNamedQuery("allUsers", User.class).getResultList();
final User user;
if (users.isEmpty()) {
User newUser = new User();
newUser.setName("me");
em.persist(newUser);
em.flush();
user = newUser;
}
else {