port = tomcat.getConnector().getLocalPort();
log.info( "Tomcat started on port:" + port );
// START SNIPPET: client-configuration
DirectMemoryClientConfiguration configuration =
new DirectMemoryClientConfiguration()
.setHost( "localhost" )
.setPort( port )
.setHttpPath( "/direct-memory/DirectMemoryServlet" )
.setSerializer( SerializerFactory.createNewSerializer() )
.setHttpClientClassName( httpClientClassName )