statement.setInt(1, user.getUserID());
ResultSet result = statement.executeQuery();
if (result.next()) {
resource = getResourceFromResult(result);
} else {
throw new ResourceNotFoundException();
}
} catch (SQLException e) {
throw new DAOException();
}
return resource;