/* (non-Javadoc)
   * @see org.sociotech.communitymashup.interfaceprovider.impl.InterfaceServiceFacadeImpl#stop()
   */
  @Override
  protected void stop() {
    // call super stop to maintain state
    super.stop();

    if (resourceRegistrator != null) {
      // close resource registrator
      resourceRegistrator.close();
    }
  }
  /**
   * Constructs a new feed interface service with the given configuration serving data from the
   * given data set.
   *
   * @param context Bundle context
   * @param configuration Configuration of this rest interface service.
   * @param dataSet Data set containing the data served by this rest interface.
   */
  public RESTInterfaceService(BundleContext context, RESTInterface configuration, DataSet dataSet) {

    // register resource registrator to make rest servlets available when http service starts
    resourceRegistrator = new ResourceRegistrator(context, dataSet, configuration, this);
    resourceRegistrator.open();
  }