private String loadGroupOrEnsemble(String id)
throws DoesNotExistException, WorkspaceDatabaseException {
if (id == null) {
throw new DoesNotExistException("id is null");
}
Connection c = null;
PreparedStatement pstmt = null;
ResultSet rs = null;
try {
c = getConnection();
pstmt = c.prepareStatement(SQL_LOAD_GROUP_RESOURCE);
pstmt.setString(1, id);
rs = pstmt.executeQuery();
if (rs == null || !rs.next()) {
final String err = "resource with id = " + id + " not found";
logger.error(err);
throw new DoesNotExistException(err);
} else {
// could be null
return rs.getString(1);
}
} catch(SQLException e) {