add example with context selection from servlet