Source:
<code>public String createMachine( Map<String,String> targetProperties, Map<String,String> messagingConfiguration, String scopedInstancePath, String applicationName ) throws TargetException { this.logger.fine( "Creating a new agent in memory." ); try { String delayAsString = null; if( targetProperties != null ) delayAsString = targetProperties.get( DELAY ); long delay = delayAsString != null ? Long.parseLong( delayAsString ) : this.defaultDelay.get(); if( delay > 0 ) Thread.sleep( delay ); } catch( Exception e ) { this.logger.warning( "An error occurred while applying the delay property. " + e.getMessage()); Utils.logException( this.logger, e ); } Dictionary<String,Object> configuration = new Hashtable<>(); <START> for(String k : messagingConfiguration.keySet()) { <END> configuration.put(k, messagingConfiguration.get(k)); } configuration.put( "application-name", applicationName ); configuration.put( "scoped-instance-path", scopedInstancePath ); String machineId = scopedInstancePath + " @ " + applicationName; configuration.put( Factory.INSTANCE_NAME_PROPERTY, machineId ); if( this.agentFactory == null ) throw new TargetException( "The iPojo factory was not available." ); try { ComponentInstance instance = this.agentFactory.createComponentInstance( configuration ); instance.start(); } catch( Exception e ) { throw new TargetException( "An in-memory agent could not be launched. Scoped instance path: " + scopedInstancePath, e ); } return machineId; }</code><technical_language>Map.entrySet</technical_language>

Target:
public String createMachine( Map<String,String> targetProperties, Map<String,String> messagingConfiguration, String scopedInstancePath, String applicationName ) throws TargetException { this.logger.fine( "Creating a new agent in memory." ); try { String delayAsString = null; if( targetProperties != null ) delayAsString = targetProperties.get( DELAY ); long delay = delayAsString != null ? Long.parseLong( delayAsString ) : this.defaultDelay.get(); if( delay > 0 ) Thread.sleep( delay ); } catch( Exception e ) { this.logger.warning( "An error occurred while applying the delay property. " + e.getMessage()); Utils.logException( this.logger, e ); } Dictionary<String,Object> configuration = new Hashtable<>(); final String messagingType = messagingConfiguration.get("net.roboconf.messaging.type"); configuration.put( "application-name", applicationName ); configuration.put( "scoped-instance-path", scopedInstancePath ); configuration.put( "messaging-type", messagingType); MessagingClientFactory messagingFactory = this.registry.getMessagingClientFactory(messagingType); if (messagingFactory != null) { messagingFactory.setConfiguration(messagingConfiguration); } String machineId = scopedInstancePath + " @ " + applicationName; configuration.put( Factory.INSTANCE_NAME_PROPERTY, machineId ); if( this.agentFactory == null ) throw new TargetException( "The iPojo factory was not available." ); try { ComponentInstance instance = this.agentFactory.createComponentInstance( configuration ); instance.start(); } catch( Exception e ) { throw new TargetException( "An in-memory agent could not be launched. Scoped instance path: " + scopedInstancePath, e ); } return machineId; }