Could not show error message with insight validation

Hi,

I am using insight - Asset Management. And I wrote the insight validator.
https://documentation.mindville.com/insight/latest/validate-an-insight-custom-field-33466727.html

I got this error message from ValidationInsightException

{
  rlabs - insight - attribute - 1111 = [ErrorMessage{
    i18nKey = 'rlabs.insight.i18n.constraint.violation.ObjectAttributeValueBean.Invalid.Iql.object',
    parameters = [abc],
    additionalMessage = null
  }], rlabs - insight - attribute - 222 = [ErrorMessage{
    i18nKey = 'rlabs.insight.i18n.constraint.violation.ObjectAttributeValueBean.Invalid.Iql.object',
    parameters = [zzzzz],
    additionalMessage = null
  }], rlabs - insight - attribute - 333 = [ErrorMessage{
    i18nKey = 'rlabs.insight.i18n.constraint.violation.unique',
    parameters = [ Number],
    additionalMessage = null
  }], rlabs - insight - attribute - 444 = [ErrorMessage{
    i18nKey = 'rlabs.insight.i18n.constraint.violation.ObjectAttributeValueBean.Invalid.Iql.object',
    parameters = [xyz],
    additionalMessage = null
  }], rlabs - insight - attribute - 555 = [ErrorMessage{
    i18nKey = 'rlabs.insight.i18n.constraint.violation.ObjectAttributeValueBean.Invalid.Iql.object',
    parameters = [hhhh],
    additionalMessage = null
  }]
}

The message is difficult to read, how can I get the context message for this.
I want to get something like " Field Number should be unique."

Cheer,

Hi,
I can solved my problem by this way - get the first error message

ArrayList<Collection<ErrorMessage>> values = new ArrayList<>(vie.getErrorMap().values());
ArrayList<ErrorMessage> errorMessages = new ArrayList<>(values.get(0));
def errorI18nKey = errorMessages.get(0).getI18nKey();
def param = errorMessages.get(0).getParameters();
return ComponentAccessor.getJiraAuthenticationContext().getI18nHelper().getText(errorI18nKey, param);