code: private void setIsStepEnabled(int step, boolean isEnabled) {
          try {
              Object oRoadmapItem = m_xRMIndexCont.getByIndex(step - 1);
              XPropertySet xRMItemPSet = (XPropertySet) UnoRuntime.queryInterface(XPropertySet.class, oRoadmapItem);
              xRMItemPSet.setPropertyValue("Enabled", new Boolean(isEnabled));
          } catch (com.sun.star.uno.Exception e) {
              LOGGER.log(Level.SEVERE, "Error in setIsStepEnabled", e);
              throw new CogrooRuntimeException(e);
          }
      }
docs: Configure the steps that are enabled.
  @param step step to configure
  @param isEnabled if it is enabled