code: public static List<String> asListLines(String content) {
      List<String> retorno = new ArrayList<String>();
      content = content.replace(CARRIAGE_RETURN, RETURN);
      content = content.replace(RETURN, CARRIAGE_RETURN);
      for (String str : content.split(CARRIAGE_RETURN)) {
        retorno.add(str);
      }
      return retorno;
    }
docs: Split string content into list
  @param content String content
  @return list