fix undertow api usage