conn.exportObject("/", new two_part_test_server(conn));
two_part_test_server server = new two_part_test_server(conn); conn.exportObject("/", server); conn.addSigHandler(TwoPartInterface.TwoPartSignal.class, server);
   public static void main(String[] args) throws Exception   {      DBusConnection conn = DBusConnection.getConnection(DBusConnection.SESSION);      conn.requestBusName("org.freedesktop.dbus.test.two_part_server");      conn.exportObject("/", new two_part_test_server(conn));      while (true) try { Thread.sleep(10000); } catch (InterruptedException Ie) {}   }