code: public static OutputMapping createOutputMapping( Element outputElement ){
          if( outputElement == null ){
              return null;
          }
          switch( outputElement.getType() ) {
              case VARIABLE:
                  return new ValueMapping( outputElement.getString( 0 ) );
              case VARIABLES:
                  Map<String, String> mappings = new LinkedHashMap<>();
                  for( String mapping : outputElement.getStringArray( 0 ) ){
                      String[] pair = mapping.split( "=" );
                      mappings.put( pair[1], pair[0] );
                  }
                  return new MapEntryMapping( mappings );
              default :
                  throw new IllegalStateException( "No strategy defined for creating an OutputMapping based on: " + outputElement );
          }
      }
docs: Creates an {@link OutputMapping} based on an output element.