We published this completely working example together with detailed description here:

https://github.com/Inflectra/rapise-framework-examples/tree/master/SpiraFriendlyWithRvlAndUserLib

 

This sample contains detailed description in the README.md file.