code: public void create(String firstName, String lastName, boolean married) {
      long ts = System.currentTimeMillis();
  
      UserProfileModel profileModel = UserProfileModel.newBuilder()
          .setFirstName(firstName).setLastName(lastName).setMarried(married)
          .setCreated(ts).build();
      UserActionsModel actionsModel = UserActionsModel.newBuilder()
          .setFirstName(firstName).setLastName(lastName)
          .setActions(new HashMap<String, String>()).build();
      actionsModel.getActions().put("profile_created", Long.toString(ts));
  
      UserProfileActionsModel profileActionsModel = UserProfileActionsModel
          .newBuilder().setUserProfileModel(profileModel)
          .setUserActionsModel(actionsModel).build();
  
      if (!userProfileActionsDao.put(profileActionsModel)) {
        // If put returns false, a user already existed at this row
        System.out
            .println("Creating a new user profile failed due to a write conflict.");
      }
    }
docs: Create a fresh new user record.
  
  This method demonstrates creating both a UserProfileModel and a
  UserActionsModel atomically in a single row. When creating a user profile,
  we add the "created" action to the actions map. This shows how we can use
  the CompositeDao to accomplish this.
  
  @param firstName
  The first name of the user we are creating
  @param lastName
  The last name of the user we are creating
  @param married
  True if this person is married. Otherwise false.