List areas = new ArrayList();
BGAreaManager areaManager = BGAreaManagerImpl.getInstance();
BGContextManager contextManager = BGContextManagerImpl.getInstance();
Iterator iterator = learningGroupContexts.iterator();
while (iterator.hasNext()) {
BGContext bgContext = (BGContext) iterator.next();
BusinessGroup group = contextManager.findGroupOfBGContext(groupName, bgContext);
if (group != null) {
List groupAreas = areaManager.findBGAreasOfBusinessGroup(group);
areas.addAll(groupAreas);
}