code: public static List<String> splitLines( final String content ) {
          if (content == null || content.length() == 0) return Collections.emptyList();
          String[] lines = content.split("[\\r]?\\n");
          return Arrays.asList(lines);
      }
docs: Split the supplied content into lines, returning each line as an element in the returned list.
  
  @param content the string content that is to be split
  @return the list of lines; never null but may be an empty (unmodifiable) list if the supplied content is null or empty