@Override
public Object invoke(FederatedServiceCollection collection, Method method,
Object[] args) throws ServiceException, IllegalArgumentException,
IllegalAccessException, InvocationTargetException {
if (args.length == 0) {
throw new ServiceException("unexpected number of arguments");
}
SituationQueryBean query = (SituationQueryBean) args[0];
Set<String> agencyIds = new HashSet<String>();
if (query.getAffects() != null) {
for (SituationQueryBean.AffectsBean affects : query.getAffects()) {