} else {
pstmt.setString(1, name);
}
ResultSet rs = pstmt.executeQuery();
if (!rs.next()) {
throw new GroupNotFoundException();
}
this.id = rs.getInt("groupID");
this.name = rs.getString("name");
this.description = rs.getString("description");
} catch (SQLException sqle) {
log.error("SQLException in DbGroup.java:" + "loadFromDb():reading group data " , sqle);
throw new GroupNotFoundException();
} finally {
try {
pstmt.close();
} catch (Exception e) {
log.error("",e);