/** * Creates a new <code>Header</code> from the specified * <code>Header</code>. The <code>Header</code> instance is initialized * with a copy of the list of {@link Field}s of the specified * <code>Header</code>. The <code>Field</code> objects are not copied * because they are immutable and can safely be shared between headers. * * @param other * header to copy. */ public AbstractHeader(Header other) { for (Field otherField : other.getFields()) { addField(otherField); } }
List<Field> l = fieldMap.get(lowerCaseName); if (l == null || l.isEmpty()) { addField(field); return;