Buggy code:
public abstract class DockerServiceFactory implements PlatformService { private static final String DOCKER_SERVICE_KEY = "dockerFactoryService" ; private Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ; Map < String , Map < String , Object > > containerCredentialMap = new HashMap < String , Map < String , Object > > ( ) ; @ Value ( "${docker.offset}" ) private int offset ; @ Value ( "${docker.imageName}" ) private String imageName ; @ Value ( "${docker.containerPort}" ) private int containerPort ; @ Value ( "${docker.passwordEnv}" ) private String passwordEnv ; @ Value ( "${docker.usernameEnv}" ) private String usernameEnv ; @ Value ( "${docker.vhostEnv}" ) private String vHostEnv ; @ Value ( "${docker.ssl.enabled:false}" ) private boolean dockerSSLEnabled ; @ Value ( "${docker.host}" ) private String dockerHost ; @ Value ( "${docker.port}" ) private String dockerPort ; @ Value ( "${docker.volume.service.port}" ) private String dockerVolumePort ; @ Value ( "${docker.portRange.start}" ) private int portRangeStart ; @ Value ( "${docker.portRange.end}" ) private int portRangeEnd ; @ Value ( "${docker.syslogAddress}" ) private String syslogAddress ; @ Autowired private DockerVolumeServiceBroker dockerVolumeServiceBroker ; @ Autowired private EndpointAvailabilityService endpointAvailabilityService ; private List < Integer > availablePorts = new ArrayList < Integer > ( ) ; private List < Integer > usedPorts = new ArrayList < Integer > ( ) ; @ PostConstruct public void initialize ( ) throws PlatformException { } private void updateAvailablePorts ( ) throws PlatformException { } private void listUsedPort ( ) throws PlatformException { } private void intersect ( ) throws PlatformException { } private Integer resolveNextAvailablePort ( ) throws PlatformException { } private void initAvailablePorts ( ) { } private DockerClient createDockerClientInstance ( ) throws PlatformException { } private String getEnviornment ( String key , String value ) { } private CreateContainerResponse createDockerContainer ( String vhost , String username , String password ) throws PlatformException { DockerClient dockerClient = this . createDockerClientInstance ( ) ; Binding binding = new Binding ( this . resolveNextAvailablePort ( ) ) ; ExposedPort exposedPort = new ExposedPort ( this . containerPort ) ; PortBinding portBinding = new PortBinding ( binding , exposedPort ) ; LogConfig logConfig = new LogConfig ( ) ; logConfig . setType ( SYSLOG ) ; Map < String , String > config = new HashMap < String , String > ( ) ; <START_BUG> config . put ( "syslog-addres" , syslogAddress ) ; <END_BUG> logConfig . setConfig ( config ) ; CreateContainerCmd containerCmd = dockerClient . createContainerCmd ( imageName ) . withPortBindings ( portBinding ) . withRestartPolicy ( RestartPolicy . alwaysRestart ( ) ) . withLogConfig ( logConfig ) ; if ( ( usernameEnv ) != null ) containerCmd . withEnv ( getEnviornment ( usernameEnv , username ) ) ; if ( ( passwordEnv ) != null ) containerCmd . withEnv ( getEnviornment ( passwordEnv , password ) ) ; if ( ( vHostEnv ) != null ) containerCmd . withEnv ( getEnviornment ( vHostEnv , vhost ) ) ; logger . trace ( containerCmd . toString ( ) ) ; CreateContainerResponse container = containerCmd . exec ( ) ; try { dockerClient . close ( ) ; } catch ( IOException e ) { logger . warn ( "Cannot<seq2seq4repair_space>close<seq2seq4repair_space>docker<seq2seq4repair_space>client<seq2seq4repair_space>at<seq2seq4repair_space>creating<seq2seq4repair_space>docker<seq2seq4repair_space>container!" ) ; } return container ; } private String getContainerVolumeHostPath ( String containerId ) throws PlatformException { } private String getContainerNodeName ( String containerId ) throws PlatformException { } private Integer getContainerExposedPort ( String containerId ) throws PlatformException { } private void startContainer ( CreateContainerResponse container ) throws PlatformException { } private void killContainer ( String containerId ) throws PlatformException { } private void removeContainer ( String containerId ) throws PlatformException { } public CreateContainerResponse createDockerContainer ( String instanceId , int voluneSize , String vhost , String username , String password ) throws PlatformException { } public void removeDockerContainer ( String containerId ) throws PlatformException { } }

Fix:
config . put ( "syslog-address" , syslogAddress ) ;