private void logIn() {
Vector v = org.salamanca.broker.BrokerServer.instance().query(User.class,
"name==\"" + this.jTextFieldUsuario.getText() + "\"");
if (v.size() > 0) {
User usuario = (User) v.firstElement();
String password = String.valueOf(this.jPasswordFieldPassword.
getPassword());
if (usuario.getPassword().equals(password)) {
if (this.changePassword) {
changePassword(usuario);
} else {
this.mainframe.login(usuario);