public void propertiesToContainerState(ContainerState containerState,Map<String,Object> properties){
  AssertUtil.assertNotNull(containerState,"containerState");
  AssertUtil.assertNotNull(properties,"properties");
  containerState.id=(String)properties.get(DOCKER_CONTAINER_ID_PROP_NAME);
  String name=(String)properties.get(DOCKER_CONTAINER_NAME_PROP_NAME);
  if (name != null && name.startsWith("/")) {
    name=name.substring(1);
  }
  containerState.names=Collections.singletonList(name);
  containerState.created=parseDate(properties.get(DOCKER_CONTAINER_CREATED_PROP_NAME));
  mapStateProperties(containerState,getMap(properties,DOCKER_CONTAINER_STATE_PROP_NAME));
  mapConfigProperties(containerState,getMap(properties,DOCKER_CONTAINER_CONFIG_PROP_NAME));
  mapPortBindingProperties(containerState,getMap(properties,DOCKER_CONTAINER_NETWORK_SETTINGS_PROP_NAME));
  mapContainerIPAddress(containerState,getMap(properties,DOCKER_CONTAINER_NETWORK_SETTINGS_PROP_NAME));
}

public void propertiesToContainerState ( ContainerState containerState , Map < String , Object > properties ) { AssertUtil . assertNotNull ( containerState , "containerState" ) ; AssertUtil . assertNotNull ( properties , "properties" ) ; containerState . id = ( String ) properties . get ( DOCKER_CONTAINER_ID_PROP_NAME ) ; String name = ( String ) properties . get ( DOCKER_CONTAINER_NAME_PROP_NAME ) ; if ( name != null && name . startsWith ( "/" ) ) { name = name . substring ( 1 ) ; } containerState . names = Collections . singletonList ( name ) ; containerState . created = parseDate ( properties . get ( DOCKER_CONTAINER_CREATED_PROP_NAME ) ) ; mapStateProperties ( containerState , getMap ( properties , DOCKER_CONTAINER_STATE_PROP_NAME ) ) ; mapConfigProperties ( containerState , getMap ( properties , DOCKER_CONTAINER_CONFIG_PROP_NAME ) ) ; mapPortBindingProperties ( containerState , getMap ( properties , DOCKER_CONTAINER_NETWORK_SETTINGS_PROP_NAME ) ) ; mapContainerIPAddress ( containerState , getMap ( properties , DOCKER_CONTAINER_NETWORK_SETTINGS_PROP_NAME ) ) ; }
convert generic properties from the given map to modeled properties in the given containerstate
