private static void addDefaultFields(SortedSet<PdxField> myFields,SortedSet<PdxField> otherFields){
  for (  PdxField f : otherFields) {
    if (!myFields.contains(f)) {
      myFields.add(new DefaultPdxField(f));
    }
  }
}

private static void addDefaultFields ( SortedSet < PdxField > myFields , SortedSet < PdxField > otherFields ) { for ( PdxField f : otherFields ) { if ( ! myFields . contains ( f ) ) { myFields . add ( new DefaultPdxField ( f ) ) ; } } }
any fields that are in otherfields but not in myfields are added to myfields as defaults . when adding fields they are inserted in the natural sort order . note : myfields may be modified by this call .
