List oooOptions = OOoServer.getDefaultOOoOptions();
oooOptions.add("-nofirststartwizard");
OOoServer oooServer = new OOoServer(OOO_EXEC_FOLDER, oooOptions);
// Connect to OOo
BootstrapSocketConnector bootstrapSocketConnector = new BootstrapSocketConnector(oooServer);
XComponentContext remoteContext = bootstrapSocketConnector.connect();
// Convert text document to PDF
convert(loadUrl, storeUrl, remoteContext);
// Disconnect and terminate OOo server
bootstrapSocketConnector.disconnect();
}