Make it work on LibreOffice 4.1+

Note that ATM it's still not working. I get:
Caused by: java.net.ConnectException: connection failed: 'socket,host=127.0.0.1,port=8100,tcpNoDelay=1'; java.net.ConnectException: Connection refused