// Create an agent to listen for commands.
// Also take the opportunity to memoize users we're following.
TwitLogicAgent agent = new TwitLogicAgent(client);
Handler<Tweet> statusHandler
= userRegistry.createUserRegistryFilter(
new CommandListener(agent, baseStatusHandler));
Set<User> users = new HashSet<User>();
Set<String> terms = new HashSet<String>();
terms.add("earthquake");
client.processFilterStream(users, terms, null, statusHandler, d, 0);