CONS_SECRET);
String accessTokenFilePath = preferences.getSimpleValue("accessTokenFilePath", "/path/to/token.ser");
try {
TwitterFactory tFactory = new TwitterFactory();
AccessToken accessToken = restoreAccessToken(accessTokenFilePath);
log.debug("loading accessToken from " + accessTokenFilePath);
log.debug("token: [" + accessToken.getToken() + "]");
log.debug("tokenSecret: [" + accessToken.getTokenSecret() + "]");
Twitter twitter = tFactory.getInstance();
twitter.setOAuthConsumer(consumerKey, consumerSecret);
twitter.setOAuthAccessToken(accessToken);
AlertManagerLocal alertManager = LookupUtil.getAlertManager();
StringBuilder b = new StringBuilder("Alert ");