code: public static Map<String,String> parsePropertiesFromBase(Configuration conf, String base) {
  	HashMap<String,String> result = new HashMap<>();
  	for (Map.Entry<String, String> currentItem : conf) {
  	    String currentKey=currentItem.getKey();
              if (currentKey.startsWith(base)) {
  		String strippedKey = currentKey.substring(base.length());
  		result.put(strippedKey,currentItem.getValue());
  	    }
          }
  	return result;
  }
docs: /*
  Extracts from the configuration all properties having the same base a Map of Key/value pair. Example: base: "hadoopoffice.read.filter.metadata.", properties in JobConf "hadoopoffice.read.filter.metadata.author"="Martha Musterfrau", "hadoopoffice.read.filter.metadata.keywords"="test,document", "hadoopoffice.test"="test" will return a Map with the following elements:
  "metadata.author"="Martha Musterfrau", "metadata.keywords"="test,document"
  
  @param conf Configuration of application
  @param base look for all keys with this base
  
  @return Map with key/values of all keys having the specified base. Note the base is removed from the key