gotta have an application segment as JAX-RS does not seem to be flexible enough for it to be used only when required