synchronized Container removeAndGet ( final String containerId ) { final Container result = this . containers . remove ( containerId ) ; if ( null == result ) { throw new RuntimeException ( "Unknown container to remove: " + containerId ) ; } return result ; }
Removes the container with the given ID .