Buggy code:
@ SuppressWarnings ( "unused" ) private < K > K findMapKey ( Map < K , ? > map , Object value ) { } protected final ServiceOperationParamDesc createOperationParamDesc ( ServiceId svcId , MessageTypeConfig cfg , String ns , ServiceTypeMappings typeMappings , String opName , boolean isErrorType , ClassLoader cl ) throws ServiceException { } protected final ServiceOperationParamDesc createOperationHeaders ( ServiceId svcId , List < MessageHeaderConfig > cfgList , QName svcQName , ServiceTypeMappings typeMappings , String opName , ClassLoader cl , String ns ) throws ServiceException { } private Class loadClassForJavaType ( String opName , String className , ClassLoader cl ) throws ServiceException { } private DataElementSchema loadElementSchema ( ServiceId svcId , String opName , String ns , ServiceTypeMappings typeMappings , Class clazz , QName xmlName , QName xmlType , ClassLoader cl ) throws ServiceException { } protected final Map < String , ServiceOperationDesc > createOperations ( ServiceId svcId , TypeMappingConfigHolder mappings , Collection < String > unsupportedOpNames , ServiceTypeMappings typeMappings , QName svcQName , ClassLoader cl , OperationPropertyConfigHolder propertyConfig ) throws ServiceException { } protected final Map < String , ProtocolProcessorDesc > createProtocolProcessors ( ServiceId svcId , List < ProtocolProcessorConfig > processorConfigs , ClassLoader cl ) throws ServiceException { } protected final Map < String , DataBindingDesc > createDataBindings ( ServiceId svcId , MessageProcessorConfigHolder processorConfig , Collection < String > supportedBindingsNames , Set < Class > rootClasses , boolean requireDifferentPayloads , ClassLoader cl , boolean schemaCheck ) throws ServiceException { } public static Set < Class > getRootClassesFromOperations ( Collection < ServiceOperationDesc > operations ) { } public static Class [ ] addDataBindingSpecificTypes ( Set < Class > rootClasses , Collection < TypeConverter < ? , ? > > converters ) { } private void initSerializerFactory ( SerializerFactory factory , ServiceId svcId , Map < String , String > options , Class [ ] rootClasses ) throws ServiceException { } private void initDeserializerFactory ( DeserializerFactory factory , ServiceId svcId , Map < String , String > options , Class [ ] rootClasses , Schema upaAwaremasterSchema ) throws ServiceException { } private boolean hasDefaultDataBinding ( Map < String , DataBindingDesc > bindings , Set < String > payloadTypes , String name ) { } private static final Map < String , String > NV_DATA_BINDING_OPTIONS ; private static final Map < String , String > JSON_DATA_BINDING_OPTIONS ; protected final void addDefaultDataBindings ( ServiceId svcId , Map < String , DataBindingDesc > bindings , Set < String > payloadTypes , Set < Class > rootClasses , Schema upaAwareMasterSchema , boolean forFallback ) throws ServiceException { } private void buildCustomSerializers ( String name , MessageProcessorConfigHolder processorConfig , Map < String , Serializer > customSerializers , Map < String , Deserializer > customDeserializers , ClassLoader cl ) throws ServiceException { } private void buildTypeConverters ( String name , MessageProcessorConfigHolder processorConfig , Map < String , TypeConverter < ? , ? > > typeConvertersByBoundType , Map < String , TypeConverter < ? , ? > > typeConvertersByValueType , ClassLoader cl ) throws ServiceException { } private void checkTypeConverter ( TypeConverter conv , String valueType , String boundType ) throws ServiceException { } protected final List < LoggingHandler > createLoggingHandlers ( ServiceId svcId , MessageProcessorConfigHolder processorConfig , ClassLoader cl ) throws ServiceException { } protected final void addDefaultLoggingHandler ( ServiceId svcId , ClassLoader cl , List < LoggingHandler > list ) throws ServiceException { } protected abstract String getDefaultLoggingHandlerClassName ( ) { } protected final Class loadServiceInterfaceClass ( CommonConfigHolder config , boolean isRequired , ClassLoader cl ) throws ServiceException { } protected HeaderMappingsDesc loadHeaderMappings ( String adminName , OptionList options , boolean inbound ) throws ServiceCreationException { if ( options == null ) { return HeaderMappingsDesc . EMPTY_MAPPINGS ; } List < NameValue > nameValueList = options . getOption ( ) ; Map < String , String > headerMap = new HashMap < String , String > ( ) ; Set < String > suppressHeaderSet = new HashSet < String > ( ) ; for ( NameValue nv : nameValueList ) { String rawname = nv . getName ( ) ; String name = SOAHeaders . normalizeName ( rawname , true ) ; if ( inbound && ( ! ( SOAHeaders . isSOAHeader ( name ) ) ) ) { throw new ServiceCreationException ( ErrorDataFactory . createErrorData ( SVC_FACTORY_INVALID_HEADER_NAME , ERRORDOMAIN , new Object [ ] { adminName , name } ) ) ; } String value = nv . getValue ( ) ; if ( value . startsWith ( "header[" ) ) { if ( ! ( value . endsWith ( "]" ) ) ) { throw new ServiceCreationException ( ErrorDataFactory . createErrorData ( SVC_FACTORY_INVALID_MAPPING_VALUE , ERRORDOMAIN , new Object [ ] { adminName , value } ) ) ; } String indexval = value . substring ( 7 , ( ( value . length ( ) ) - 1 ) ) ; if ( inbound ) { if ( headerMap . containsKey ( indexval ) ) { throw new ServiceCreationException ( ErrorDataFactory . createErrorData ( SVC_FACTORY_DUPLICATE_HEADER_KEY , ERRORDOMAIN , new Object [ ] { adminName , indexval } ) ) ; } <START_BUG> headerMap . put ( indexval , name ) ; <END_BUG> } else { if ( headerMap . containsKey ( indexval ) ) { throw new ServiceCreationException ( ErrorDataFactory . createErrorData ( SVC_FACTORY_DUPLICATE_HEADER_KEY , ERRORDOMAIN , new Object [ ] { adminName , indexval } ) ) ; } headerMap . put ( name , indexval ) ; } } else if ( value . equals ( "suppress" ) ) { suppressHeaderSet . add ( name ) ; } else { throw new ServiceCreationException ( ErrorDataFactory . createErrorData ( SVC_FACTORY_INVALID_MAPPING_VALUE , ERRORDOMAIN , new Object [ ] { adminName , value } ) ) ; } } HeaderMappingsDesc result = new HeaderMappingsDesc ( headerMap , suppressHeaderSet ) ; return result ; } private void updateMetrics ( ServiceDesc serviceDesc ) { } protected final void initializeCompStatus ( BaseServiceBrowserCompStatus comp ) { } }

Fix:
headerMap . put ( indexval . toUpperCase ( ) , name ) ;