public RestConfigChangeListener(ServiceLocator habitat, Reloader reload, ResourceConfig rc, ServerContext sc) {
// this.r = reload;
this.sc = sc;
RestConfig target = ResourceUtil.getRestConfig(habitat);
if (target != null) {
((ObservableBean) ConfigSupport.getImpl(target)).addListener(this);
}