code: public static Properties configFromPrefix(final Map<String, Object> base, final String prefix) {
          final Properties config = new Properties();
          // load configuration from base, stripping prefix
          for (Map.Entry<String, Object> entry : base.entrySet()) {
              if (entry.getKey().startsWith(prefix)) {
                  config.setProperty(entry.getKey().substring(prefix.length()), String.valueOf(entry.getValue()));
              }
          }
  
          return config;
      }
docs: Reads a configuration subset from storm's configuration, stripping {@code prefix} from keys using it.
  
  @param base   Storm's configuration mapping.
  @param prefix The prefix to match and strip from the beginning.
  @return A {@link Properties} object created from storm's configuration.