in src/main/groovy/swing/greet/TwitterAPI.groovy [49:58]
boolean login(def name, def password) {
withStatus("Logging in") {
Authenticator.setDefault(
[getPasswordAuthentication : {
return new PasswordAuthentication(name, password) }
] as Authenticator)
authenticatedUser = getUser(name)
return true
}
}