Use getInjector().
[jan] Only use URL rewriting for saving/completing tasks if pretty URLs are enabled in the configuration.