@Override
public TupleSource registerRequest(CommandContext context,
Command command, String modelName,
RegisterRequestParameter parameterObject)
throws TeiidComponentException {
if (hints[i*2] == null && hints[i*2+1] == null) {
assertNull(command.getSourceHint());
} else {
assertEquals(hints[i*2], command.getSourceHint().getGeneralHint());
assertEquals(hints[i*2+1], command.getSourceHint().getSourceHint("bar"));
}
i = ++i%(hints.length/2);
if (getData(command.toString()) != null) {
return super.registerRequest(context, command, modelName, parameterObject);
}
return CollectionTupleSource.createNullTupleSource();
}
};