{
try
{
System.out.println ("Info:");
// Use interface XServiceName to retrieve name of (main) service.
XServiceName xSN = (XServiceName) UnoRuntime.queryInterface (
XServiceName.class, xObject);
if (xSN == null)
MessageArea.println (" interface XServiceName not supported");
else
{
MessageArea.println (" Service name : " + xSN.getServiceName ());
}
// Use interface XServiceInfo to retrieve information about
// supported services.
XServiceInfo xSI = (XServiceInfo) UnoRuntime.queryInterface (