code: private static void dumpRelationList(List<Relation> relations)
     {
        if (relations != null && relations.isEmpty() == false)
        {
           if (relations.size() > 1)
           {
              System.out.print('"');
           }
           boolean first = true;
           for (Relation relation : relations)
           {
              if (!first)
              {
                 System.out.print(',');
              }
              first = false;
              System.out.print(relation.getTargetTask().getID());
              Duration lag = relation.getLag();
              if (relation.getType() != RelationType.FINISH_START || lag.getDuration() != 0)
              {
                 System.out.print(relation.getType());
              }
  
              if (lag.getDuration() != 0)
              {
                 if (lag.getDuration() > 0)
                 {
                    System.out.print("+");
                 }
                 System.out.print(lag);
              }
           }
           if (relations.size() > 1)
           {
              System.out.print('"');
           }
        }
     }
docs: Internal utility to dump relationship lists in a structured format
  that can easily be compared with the tabular data in MS Project.
  
  @param relations relation list