code: private Map<String, Table> getIndex(Table table)
     {
        Map<String, Table> result;
  
        if (!table.getResourceFlag())
        {
           result = m_taskTablesByName;
        }
        else
        {
           result = m_resourceTablesByName;
        }
        return result;
     }
docs: Retrieve the correct index for the supplied Table instance.
  
  @param table Table instance
  @return index