code: public void modifed(ServiceReference<ResourceFactory> ref) {
          String[] newInterfaces = getServiceInterfaces(ref);
          if (!Arrays.equals(interfaces, newInterfaces)) {
              unregister();
              register(ref, newInterfaces);
          } else {
              registration.setProperties(getServiceProperties(ref));
          }
      }
docs: Notification that the properties for the ResourceFactory changed.