Buggy code:
public class EJBRemoteManagementUtil { private static final Logger logger = Logger . getLogger ( EJBRemoteManagementUtil . class ) ; public static int getEJBRemoteConnectorPort ( final String managementServerHostName , final int managementPort , final CallbackHandler handler ) { } public static void createRemoteOutboundSocket ( final String managementServerHostName , final int managementPort , final String socketGroupName , final String outboundSocketName , final String destinationHost , final int destinationPort , final CallbackHandler callbackHandler ) { } public static void createLocalOutboundSocket ( final String managementServerHostName , final int managementPort , final String socketGroupName , final String outboundSocketName , final String socketBindingRef , final CallbackHandler callbackHandler ) { } public static void removeLocalOutboundSocket ( final String managementServerHostName , final int managementPort , final String socketGroupName , final String outboundSocketName , final CallbackHandler callbackHandler ) { } public static void createRemoteOutboundConnection ( final String managementServerHostName , final int managementPort , final String connectionName , final String outboundSocketRef , final Map < String , String > connectionCreationOptions , final CallbackHandler callbackHandler ) { final ModelControllerClient modelControllerClient = EJBRemoteManagementUtil . getModelControllerClient ( managementServerHostName , managementPort , callbackHandler ) ; try { final ModelNode addRemoteOutboundConnection = new ModelNode ( ) ; addRemoteOutboundConnection . get ( OP ) . set ( ADD ) ; final PathAddress address = PathAddress . pathAddress ( PathElement . pathElement ( SUBSYSTEM , SUBSYSTEM_NAME ) , PathElement . pathElement ( "remote-outbound-connection" , connectionName ) ) ; addRemoteOutboundConnection . get ( OP_ADDR ) . set ( address . toModelNode ( ) ) ; addRemoteOutboundConnection . get ( "outbound-socket-binding-ref" ) . set ( outboundSocketRef ) ; if ( ! ( connectionCreationOptions . isEmpty ( ) ) ) { final ModelNode connectionCreationOptionsModel = addRemoteOutboundConnection . get ( "connection-creation-options" ) ; for ( final Map . Entry < String , String > entry : connectionCreationOptions . entrySet ( ) ) { final String optionName = entry . getKey ( ) ; final String optionValue = entry . getValue ( ) ; <START_BUG> connectionCreationOptionsModel . set ( optionName , optionValue ) ; <END_BUG> } } EJBRemoteManagementUtil . execute ( modelControllerClient , addRemoteOutboundConnection ) ; } catch ( IOException ioe ) { throw new RuntimeException ( ioe ) ; } finally { try { modelControllerClient . close ( ) ; } catch ( IOException e ) { EJBRemoteManagementUtil . logger . warn ( "Error<seq2seq4repair_space>closing<seq2seq4repair_space>model<seq2seq4repair_space>controller<seq2seq4repair_space>client" , e ) ; } } } public static void removeRemoteOutboundConnection ( final String managementServerHostName , final int managementPort , final String connectionName , final CallbackHandler callbackHandler ) { } public static String getNodeName ( final String managementServerHostName , final int managementPort ) { } private static ModelControllerClient getModelControllerClient ( final String managementServerHostName , final int managementPort , final CallbackHandler handler ) { } private static ModelNode execute ( final ModelControllerClient modelControllerClient , final ModelNode operation ) throws IOException { } private static String getNodeName ( ) { } }

Fix:
connectionCreationOptionsModel . get ( optionName ) . set ( optionValue ) ;