class XMLTreeUtil {

  public static String tabulate(String src, int tabsCount) {
    char[] tabs = new char[SPACES_IN_TAB * tabsCount];
    fill(tabs, ' ');
    final StringBuilder builder = new StringBuilder();
    final String[] lines = src.split("\n");
    for (int i = 0; i < lines.length - 1; i++) {
      builder.append(tabs).append(lines[i]).append('\n');
    }
    builder.append(tabs).append(lines[lines.length - 1]);
    return builder.toString();
  }

  private  XMLTreeUtil();

}