code: public final void dispose() throws IllegalStateException {
          synchronized (this) {
              if (pageServiceRegistration == null) {
                  throw new IllegalStateException(String.format("%s [%s] has not been registered.", getClass()
                      .getSimpleName(), this));
              }
              pageServiceRegistration.unregister();
              pageServiceRegistration = null;
              if (mountPointRegistration != null) {
                  mountPointRegistration.dispose();
                  mountPointRegistration = null;
              }
          }
      }
docs: <p>dispose.</p>
  
  @throws java.lang.IllegalStateException if any.