class WatchBuildConfigs {

  private static final Logger logger = LoggerFactory.getLogger(WatchBuildConfigs.class);

  public static void main(String[] args) {<FILL_FUNCTION_BODY>}

}

    try (OpenShiftClient client = new KubernetesClientBuilder().build().adapt(OpenShiftClient.class)) {
      final String namespace = Optional.ofNullable(client.getNamespace()).orElse("myproject");
      logger.info("Watching BuildConfigs in namespace {}", namespace);
      try (Watch watchable = client.buildConfigs().inNamespace(namespace).watch(new Watcher<BuildConfig>() {
        @Override
        public void eventReceived(Action action, BuildConfig resource) {
          logger.info(">> Action: {} on BuildConfig {} with version: {}",
              action.name(), resource.getMetadata().getName(), resource.getApiVersion());
        }

        @Override
        public void onClose(WatcherException cause) {
          logger.error("Error on Watcher (Closed): {}", cause.getMessage(), cause);
        }
      })) {
        logger.info("Created watchable {}", watchable);
      }
    } catch (KubernetesClientException e) {
      logger.error("Failed: {}", e.getMessage(), e);
    }
  
<no_super_class>