private void addAddresses(List<String> addressList, String propertyName) {
    if(addressList.isEmpty()){
      //      get property from view instance configs
      String addressString = getViewProperty(propertyName);
      LOG.debug("value of {} in view is : {}", propertyName, addressString);
      if(!Strings.isNullOrEmpty(addressString)){
        addressList.addAll(Arrays.asList(addressString.split(",")));
      }
    }
  }
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