LOG.trace("-- Begin AssigningAuthorityHomeCommunityMappingDAO.getAssigningAuthoritiesByHomeCommunity() ---");
Session sess = null;
List<String> listOfAAs = new ArrayList<>();
if (homeCommunityId != null && !homeCommunityId.isEmpty()) {
SessionFactory fact = getSessionFactory();
<BUG>try {
sess = fact.openSession();
if (sess != null) {</BUG>
Query namedQuery = sess.getNamedQuery("findAAByHomeCommunityId");
namedQuery.setParameter("homeCommunityId", homeCommunityId);

LOG.trace("-- Begin AssigningAuthorityHomeCommunityMappingDAO.getAssigningAuthoritiesByHomeCommunity() ---");
Session sess = null;
List<String> listOfAAs = new ArrayList<>();
if (homeCommunityId != null && !homeCommunityId.isEmpty()) {
SessionFactory fact = getSessionFactory();
try {
if (fact != null) {
sess = fact.openSession();
Query namedQuery = sess.getNamedQuery("findAAByHomeCommunityId");
namedQuery.setParameter("homeCommunityId", homeCommunityId);
