try {
XDrawPagesSupplier dSupplier = (XDrawPagesSupplier) UnoRuntime.queryInterface(XDrawPagesSupplier.class, presentationDocument.getXComponent());
XDrawPages pages = dSupplier.getDrawPages();
UnoRuntime.queryInterface(XDrawPage.class, pages.getByIndex(index));
XPresentationPage page = (XPresentationPage) UnoRuntime.queryInterface(XPresentationPage.class, pages.getByIndex(index));
XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, presentationDocument.getPresentationSupplier());
XController xController = xModel.getCurrentController();
XDrawView drawView = (XDrawView) UnoRuntime.queryInterface(XDrawView.class, xController);
drawView.setCurrentPage(page);