private void insertNew() {
    DB db = DB.connect();
    for (IDomainObject domainObject : newObjects) {
      if (domainObject instanceof Contact) {
        db.getContacts().add((Contact) domainObject);
      } else {
        db.getAddresses().add((Address) domainObject);
      }
    }
  }