@Deprecated
    public Membership addUserToProject(int projectId, int userId, Collection<Role> roles) throws RedmineException {
        return new Membership(transport)
                .setProject(new Project(transport).setId(projectId))
                .setUserId(userId)
                .addRoles(roles)
                .create();
    }
@ Deprecated public Membership addUserToProject ( int projectId , int userId , Collection < Role > roles ) throws RedmineException { return new Membership ( transport ) . setProject ( new Project ( transport ) . setId ( projectId ) ) . setUserId ( userId ) . addRoles ( roles ) . create ( ) ; }
DEPRECATED. use membership.create()