Would it be better, for example, to pass context.getExternalContext().getRequestLocale()
to the EJB by parameter, instead of using an import and getCurrentInstance from inside the EJB?
import javax.faces.context.FacesContext;
FacesContext.getCurrentInstance()
(I'm new to web development)