Following is what we want to achieve.
Spring configuration file.
Main class for reading twits and passing it for processing. Note that information like consumer key, consumer secret, application secret key and application secret need to be copied from your twitter developer account.
Pojo class to store twit information.
Utility Bean class.