code: private void downloadStormCode(Map conf, String topologyId, String masterCodeDir) throws IOException, TException {
          String clusterMode = StormConfig.cluster_mode(conf);
  
          if (clusterMode.endsWith("distributed")) {
              BlobStoreUtils.downloadDistributeStormCode(conf, topologyId, masterCodeDir);
          } else if (clusterMode.endsWith("local")) {
              BlobStoreUtils.downloadLocalStormCode(conf, topologyId, masterCodeDir);
          }
      }
docs: download code with two cluster modes: local and distributed