List<Tuple<Binding, ParameterizedCommand>> matches = new ArrayList<Tuple<Binding, ParameterizedCommand>>();
//Ok, it may be that the binding we're looking for is not active, so, let's give a spin on all
//the bindings
Binding[] bindings = bindingSvc.getBindings();
for (Binding binding : bindings) {
ParameterizedCommand command = binding.getParameterizedCommand();
if (command != null) {
if (commandId.equals(command.getId())) {
matches.add(new Tuple<Binding, ParameterizedCommand>(binding, command));
}
}
}
for (Tuple<Binding, ParameterizedCommand> tuple : matches) {