private void mapConfigProperties(ContainerState containerState,Map<String,Object> config){
  if (config == null) {
    return;
  }
  @SuppressWarnings("unchecked") Collection<String> commandList=(Collection<String>)config.get(DOCKER_CONTAINER_COMMAND_PROP_NAME);
  if (commandList != null) {
    containerState.command=commandList.toArray(new String[0]);
  }
  String image=(String)config.get(DOCKER_CONTAINER_IMAGE_PROP_NAME);
  if (image != null) {
    containerState.image=image;
  }
}

private void mapConfigProperties ( ContainerState containerState , Map < String , Object > config ) { if ( config == null ) { return ; } @ SuppressWarnings ( "unchecked" ) Collection < String > commandList = ( Collection < String > ) config . get ( DOCKER_CONTAINER_COMMAND_PROP_NAME ) ; if ( commandList != null ) { containerState . command = commandList . toArray ( new String [ 0 ] ) ; } String image = ( String ) config . get ( DOCKER_CONTAINER_IMAGE_PROP_NAME ) ; if ( image != null ) { containerState . image = image ; } }
process properties in the config object
