statement.setString(1,group );
ResultSet results = statement.executeQuery();
while(results.next()){
String groupId = results.getString(USERID);
Actor actor = Actor.Factory.newInstance();
actor.setActor(groupId);
actor.setIsUser(true);
actorList.add(actor);
}
results.close();
statement.close();
statement = connection.prepareStatement(GET_SUBGROUPS_GIVEN_GROUP);
statement.setString(1,group );
results = statement.executeQuery();
while(results.next()){
String groupId = results.getString(CONTANTED_GROUP_ID);
Actor actor = Actor.Factory.newInstance();
actor.setActor(groupId);
actor.setIsUser(false);
actorList.add(actor);
}
} catch (SQLException e) {
throw new XregistryException(e);