'This method is called when a tool shed repository that includes a tool_data_table_conf.xml.sample file is being
installed into a local galaxy instance.  We have 2 cases to handle, files whose root tag is <tables>, for example::
<tables>
<!-- Location of Tmap files -->
<table name="tmap_indexes" comment_char="#">
<columns>value, dbkey, name, path</columns>
<file path="tool-data/tmap_index.loc" />
</table>
</tables>
and files whose root tag is <table>, for example::
<!-- Location of Tmap files -->
<table name="tmap_indexes" comment_char="#">
<columns>value, dbkey, name, path</columns>
<file path="tool-data/tmap_index.loc" />
</table>'

def add_new_entries_from_config_file(self, config_filename, tool_data_path, shed_tool_data_table_config, persist=False):

    error_message = ''
    try:
        table_elems = self.load_from_config_file(config_filename=config_filename, tool_data_path=tool_data_path, from_shed_config=True)
    except Exception as e:
        error_message = ('Error    attempting    to    parse    file    %s:    %s' % (str(os.path.split(config_filename)[1]), str(e)))
        log.debug(error_message)
        table_elems = []
    if persist:
        self.to_xml_file(shed_tool_data_table_config, table_elems)
    return (table_elems, error_message)
