code: public static String[] toStringArray(String deviceNme, DbPipe dbPipe) {
          ArrayList<String>   list = new ArrayList<String>();
          list.add(deviceNme);
          list.add(Integer.toString(1));  //  one pipe
          list.add(dbPipe.getName());
          list.add(Integer.toString(dbPipe.size()));  //  property number
          //  fOR EACH PROPERTY
          for (DbDatum datum : dbPipe) {
              if (!datum.is_empty()) {
                  String[] values = datum.extractStringArray();
                  list.add(datum.name);
                  list.add(Integer.toString(values.length));  // Property value number (array case)
                  Collections.addAll(list, values);
              }
          }
          String[] array = new String[list.size()];
          for (int i=0 ; i<list.size() ; i++) {
              System.out.println(list.get(i));
              array[i] = list.get(i);
          }
          return array;
      }
docs: ==========================================================================