@Override
  public void doProcess() {
    try {
      com.maplelabs.framework.guestbook.domain.User user =
          userService.findUserByName(domain.getUsername());

      if (user == null) {
        userService.createUser(domain);

        domain = userService.findUserByName(domain.getUsername());
      } else {
        domain = user;
      }

    } catch (Exception e) {
      e.printStackTrace();
    }
  }
  @Override
  public void postProcess() {
    model = new com.maplelabs.framework.guestbook.response.User();

    model.setId(domain.getId());
    model.setUsername(domain.getUsername());
    model.setPassword(domain.getPassword());
    model.setEmailAddress(domain.getEmailAddress());
    model.setAddress(domain.getAddress());
    model.setCreationTime(domain.getCreationTime());

    result = model;
  }
  @Override
  public void preProcess() {
    model = (User) request.data;

    domain = new com.maplelabs.framework.guestbook.domain.User();

    domain.setId(model.getId());
    domain.setUsername(model.getUsername());
    domain.setPassword(model.getPassword());
    domain.setEmailAddress(model.getEmailAddress());
    domain.setAddress(model.getAddress());
    domain.setCreationTime(model.getCreationTime());
  }