I agree that we should use a getter method. but we already have getUiConfId() and getWidgetId() on the request object.
Anyway added a get method in 8b40606 and updated all references in the code to use that method.