porting to Undertow: working snapshot