private void copyProperties(Map<String, String> configs) {
    if (null != configs) {
      for(Map.Entry<String, String> entry : configs.entrySet()){
        String key = entry.getKey();
        String value = entry.getValue();
        conf.set(key, value);
      }
    } else {
      LOG.error("configs were null.");
    }
  }
takes context and any extra custom properties that needs to be included into config
@param context
@param customProperties
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java