code: private void setCurrentStep(int nNewID) {
          try {
              XPropertySet xDialogModelPropertySet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, m_xMSFDialogModel);
              int nOldStep = getCurrentStep();
              // in the following line "ID" and "Step" are mixed together.
              // In fact in this case they denot the same
              if (nNewID != nOldStep){
                  xDialogModelPropertySet.setPropertyValue("Step", new Integer(nNewID));
              }
          } catch (com.sun.star.uno.Exception exception) {
              exception.printStackTrace(System.out);
          }
      }
docs: Moves to another step
  @param nNewID the step to move to.