class ViewRegistry {

  @Transactional
  public void uninstallViewInstance(ViewInstanceEntity instanceEntity) throws IllegalStateException {
    try {
      viewInstanceOperationHandler.uninstallViewInstance(instanceEntity);
      updateCaches(instanceEntity);
    } catch (IllegalStateException illegalStateExcpetion) {
      LOG.error("Exception occurred while uninstalling view : {}", instanceEntity, illegalStateExcpetion);
      throw illegalStateExcpetion;
    }
  }

  @Inject public  ViewRegistry(AmbariEventPublisher publisher);

}