code: public static void exports(Media media, Map<Transition, Collection<TileRef>> transitions)
      {
          Check.notNull(media);
          Check.notNull(transitions);
  
          final Xml nodeTransitions = new Xml(NODE_TRANSITIONS);
  
          for (final Map.Entry<Transition, Collection<TileRef>> entry : transitions.entrySet())
          {
              final Transition transition = entry.getKey();
  
              final Xml nodeTransition = nodeTransitions.createChild(NODE_TRANSITION);
              nodeTransition.writeString(ATTRIBUTE_TRANSITION_TYPE, transition.getType().name());
              nodeTransition.writeString(ATTRIBUTE_GROUP_IN, transition.getIn());
              nodeTransition.writeString(ATTRIBUTE_GROUP_OUT, transition.getOut());
  
              exportTiles(nodeTransition, entry.getValue());
          }
  
          nodeTransitions.save(media);
      }
docs: Export all transitions to media.
  
  @param media The export media output (must not be <code>null</code>).
  @param transitions The transitions reference (must not be <code>null</code>).
  @throws LionEngineException If error on export.