} else if (attribute.isPassword()) {
return new PasswordField(id, model, attribute, validator);
} else if (attribute.isOAuth()) {
return new OAuthField(id, model, attribute, validator);
} else {
return new InputField(id, model, attribute, validator, editable);
}
}