I try by another way but it also doesn't work.
I found that `Authenticator` class in package `org.xdi.oxauth.auth` has a method `addMessage`.
But when I try to get the current instance of the class, nothing happens and there is no error in the log.
See my following script:
```
from org.jboss.seam.faces import FacesMessages
from javax.faces.context import FacesContext
from javax.faces.application import FacesMessage
from org.xdi.oxauth.auth import Authenticator
...
if not StringHelper.isNotEmptyString(user_name):
print "Basic (lock account). Bad email"
faces_messages = FacesMessages.instance()
print "Basic (lock account). Bad email 2"
faces_messages.add(FacesMessage.SEVERITY_ERROR, "login.empty_email 2")
print "Basic (lock account). Bad email 3"
authenticator_instance = Authenticator.instance()
print "Basic (lock account). Bad email 3.5"
authenticator_instance.addMessage(FacesMessage.SEVERITY_ERROR, "login.empty_email")
```
My last log is `Basic (lock account). Bad email 3`.