private static int format(final StringBuilder sb, final String s,
			int lineLength) {
		if (s.isEmpty()) {
			return 0;
		}
		int l = lineLength;
		final String[] parts = s.split(" ");
		boolean front = sb.length() != 0;

		for (final String part : parts) {
			if ((l > 0) && ((l + part.length() + 1) >= Main.MAX_LENGTH_INFO)) {
				sb.append("\n");
				l = 0;
			} else if (!front) {
				++l;
				sb.append(" ");
			}
			front = false;
			sb.append(part);
			l += part.length();
		}
		return l;
	}