// todo rework when new instance name is ready
@InstanceName
    public String getCaption() {
        // todo rework when new instance name is ready
        String pattern =/* AppContext.getProperty("cuba.user.namePattern");
        if (StringUtils.isBlank(pattern)) {
            pattern =*/ "{1} [{0}]";
        /*}*/
        MessageFormat fmt = new MessageFormat(pattern);
        return StringUtils.trimToEmpty(fmt.format(new Object[]{
                StringUtils.trimToEmpty(username),
                StringUtils.trimToEmpty(name)
        }));
    }
@InstanceName
public String getCaption() {
// todo rework when new instance name is ready
String pattern =/* AppContext.getProperty("cuba.user.namePattern");
if (StringUtils.isBlank(pattern)) {
@InstanceName
public String getCaption() {
// todo rework when new instance name is ready
String pattern =/* AppContext.getProperty("cuba.user.namePattern");
if (StringUtils.isBlank(pattern)) {
pattern =*/ "{1} [{0}]";
/*}*/
MessageFormat fmt = new MessageFormat(pattern);
return StringUtils.trimToEmpty(fmt.format(new Object[]{
StringUtils.trimToEmpty(username),
StringUtils.trimToEmpty(name)
}));
}
@InstanceName
public String getCaption() {
// todo rework when new instance name is ready
String pattern =/* AppContext.getProperty("cuba.user.namePattern");
if (StringUtils.isBlank(pattern)) {
pattern =*/ "{1} [{0}]";
/*}*/
MessageFormat fmt = new MessageFormat(pattern);
return StringUtils.trimToEmpty(fmt.format(new Object[]{
StringUtils.trimToEmpty(username),
StringUtils.trimToEmpty(name)
}));
}