// delete last two characters
if (sb.lastIndexOf("\n") != -1) {
sb.deleteCharAt(sb.length() - 1);
}
throw new NonUniqueResultException(
MessageFormat
.format(
"Resolution resolved more than a single artifact ({0} artifact(s)), unable to determine which one should used.\nComplete list of resolved artifacts:\n{1}"
,
array.length, sb));