docs: protected void removeStartedApplication(ServiceReference<Application> ref) {
          String appName = (String) ref.getProperty(NAME);
          lock.writeLock().lock();
          try {
              appStates.remove(appName);
          } finally {
              lock.writeLock().unlock();
          }
      }