*/
public boolean isIdentityInGroupContext(Identity identity, String groupContextName) {
BGContextManager contextManager = BGContextManagerImpl.getInstance();
Iterator iter = learningGroupContexts.iterator();
while (iter.hasNext()) {
BGContext context = (BGContext) iter.next();
if (groupContextName == null || context.getName().equals(groupContextName)) {
boolean inContext = contextManager.isIdentityInBGContext(identity, context, true, true);
if (inContext) return true; // finished
}
}
iter = rightGroupContexts.iterator();
while (iter.hasNext()) {
BGContext context = (BGContext) iter.next();
if (groupContextName == null || context.getName().equals(groupContextName)) {
boolean inContext = contextManager.isIdentityInBGContext(identity, context, true, true);
if (inContext) return true; // finished
}
}
return false;