if (null == is) {
System.out.println("xauth-test.properties not found. skipping xAuth test.");
} else {
Properties props = new Properties();
props.load(is);
Configuration conf = new PropertyConfiguration(props);
twitter = new TwitterFactory(conf).getInstance();
AccessToken at = twitter.getOAuthAccessToken(id1.screenName, id1.password);
twitter.updateStatus(new Date() + ": xAuth test.");
twitter = new TwitterFactory().getInstance();
twitter.setOAuthConsumer(conf.getOAuthConsumerKey(), conf.getOAuthConsumerSecret());
twitter.getOAuthAccessToken(id1.screenName, id1.password);
}
}