public void addConnections(DataSource[] sources)
{
for (int i = 0; i < sources.Length; i++)
{
if (cxnTable.ContainsKey(sources[i].SiteId.Key))
{
continue;
}
int protocol = DaoFactory.getConstant(sources[i].Protocol);
DaoFactory daoFactory = DaoFactory.getDaoFactory(protocol);
cxnTable.Add(sources[i].SiteId.Key, daoFactory.getConnection(sources[i]));
}
}