public void addUser(user newUser) { //send newly created user object to connection object and finally to DB newUser.setregistrationNumber(++registrationNumber); connection.addUser(newUser); }