}
}
private Object[] getAgendaElements(IJavaObject workingMemoryImpl) throws DebugException {
List<MyVariableWrapper> result = new ArrayList<MyVariableWrapper>();
IValue agendaGroupObjects = null;
try {
agendaGroupObjects = DebugUtil.getValueByExpression("return ((org.drools.core.common.InternalAgenda) getAgenda()).getAgendaGroups();", workingMemoryImpl);
} catch (RuntimeException e) {
// backwards compabitibility
agendaGroupObjects = DebugUtil.getValueByExpression("return getAgenda().getAgendaGroups();", workingMemoryImpl);
}
IValue focus = null;
try {
focus = DebugUtil.getValueByExpression("return ((org.drools.core.common.InternalAgenda) getAgenda()).getFocusName();", workingMemoryImpl);
} catch (RuntimeException e) {
try {
// Drools 4 code