code: private static List<BucketConfiguration> fromSpecString(String bucketSpec, BucketConfiguration defaultConfig) {
          List<BucketConfiguration> configs = new ArrayList<BucketConfiguration>();
          if (bucketSpec != null) {
              for (String spec : bucketSpec.split(",")) {
                  BucketConfiguration config = new BucketConfiguration(defaultConfig);
  
                  String[] parts = spec.split(":");
                  String name = parts[0];
                  String pass = "";
  
                  config.name = name;
                  if (parts.length > 1) {
                      pass = parts[1];
                      if (parts.length > 2) {
                          if (parts[2].startsWith("memcache")) {
                              config.type = BucketType.MEMCACHED;
                          }
                      }
                  }
                  config.password = pass;
                  configs.add(config);
              }
          }
  
          if (configs.isEmpty()) {
              BucketConfiguration defaultBucket = new BucketConfiguration(defaultConfig);
              defaultBucket.name = "default";
              configs.add(defaultBucket);
          }
          return configs;
      }
docs: Parses the "Bucket specification string" (typically supplied on the command line) into a list of buckets
  @param bucketSpec The specification string specified
  @param defaultConfig The default configuration used to supplant non-specified values
  @return A list of initial configurations