The documentation of the version 4.x of the UWS Library will come little by little in the next months.
You can however see the provided examples in order to understand how to build easily a UWS service. 2 methods are proposed in these examples and will be explained in more details later in this online documentation.