}
else
{
List<XAResource> xaresources = new ArrayList<XAResource>();
for (ActivationSpec spec : specs) {
HornetQActivation activation = activations.get(spec);
if (activation != null) {
xaresources.addAll(activation.getXAResources());
}
}
return xaresources.toArray(new XAResource[xaresources.size()]);
}
}