Programming in Java is very uncomfortable. The Java-program is nearly unreadable cause of the many temporary variables you need to hold interface-instances.
also uno-services are not very transparent. How do I get the names of the provided services, interfaces, properties and methods?
use a wrapperclass to let the wrapper perform the queryInterface-calls. This is my wrapper class - simple but effective.
It also provides method for a runtime-inspection similar to the famous XRay-tool.