code: public static String readSettings(String root, String index) throws IOException {
  		if (root == null) {
  			return readSettings(index);
  		}
  		return readSettings(root, index, Defaults.IndexSettingsFileName);
  	}
docs: Read index settings
  @param root dir within the classpath
  @param index index name
  @return Settings
  @throws IOException if connection with elasticsearch is failing