The base URL is removed, take a look at the contstructor of this class. That means the URL here is always context relative.  http://localhost:8080/tx:... works as well as http://localhost:8080/abc/tx:... as long as tx is the first thing after the context.