code: public static String wordWrap(final String value, final int len)
      {
          if (len < 0 || value.length() <= len)
              return value;
  
          BreakIterator bi = BreakIterator.getWordInstance(currentLocale());
          bi.setText(value);
  
          return value.substring(0, bi.following(len));
      }
docs: <p>
  Truncate a string to the closest word boundary after a number of
  characters.
  </p>
  
  @param value
  Text to be truncated
  @param len
  Number of characters
  @return String truncated to the closes word boundary