public static void main(final String[] args) throws Exception {
Properties props = new Properties();
props.load(new FileInputStream(new File("/tmp/twitlogic.props")));
TwitLogic.setConfiguration(props);
TwitterCredentials cred = new TwitterCredentials();
ConfigurationBuilder cb = new ConfigurationBuilder();
cb.setDebugEnabled(true)
.setOAuthConsumerKey(cred.getConsumerKey())
.setOAuthConsumerSecret(cred.getConsumerSecret())
.setOAuthAccessToken(cred.getAccessToken())
.setOAuthAccessTokenSecret(cred.getTokenSecret());
TwitterFactory tf = new TwitterFactory(cb.build());
Twitter twitter = tf.getInstance();
List<Status> statuses = twitter.getHomeTimeline();