@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        UserBean userBean = (UserBean) o;
        return Objects.equals(username, userBean.username);
    }
Set locale

@param locale the locale language tag
@see Locale#toLanguageTag()
manager/api/beans/src/main/java/io/apiman/manager/api/beans/idm/UserBean.java