class User {

    public void addApplication(ProjectApplication application) throws IllegalArgumentException {
        if(!this.equals(application.getUser())) {
            throw new IllegalArgumentException("The application belongs to another user!");
        }

        applications.add(application);
    }

    public  User(String userId);
    protected  User();

}