public UserProjectEntity findUserProject(int userId, int projectId) throws RepositoryException {
DbHelper db = new DbHelper();
try {
return db.findUserProject(userId, projectId);
} catch (SQLException e) {
throw new RepositoryException("Error reading user projects", e);
} finally {
db.close();
}
}