Executing the above requires bridging together the IDE and LibreOffice. Once done UNO objects become accessible.