}
public boolean isAllowed(Tuple tuple) {
List list = (List) rule.getParameterDeclarations();
WorkingMemory memory = tuple.getWorkingMemory();
JaxenVariableContext variableContext = expression.getVariableContext();
variableContext.setVariables(null);
for (Iterator iter = list.iterator(); iter.hasNext();) {
Declaration declaration = (Declaration) iter.next();
String name = declaration.getIdentifier();
Object value = tuple.get(declaration);
variableContext.setVariableValue(name, value);
}
NormalizedMessage message = (NormalizedMessage) findFirst(memory, NormalizedMessage.class);
MessageExchange exchange = (MessageExchange) findFirst(memory, MessageExchange.class);
try {