ServerConnectionPool pool = ConnectionPoolManager.getInstance().getPool(acc, sessionId);
con = pool.getConnection("getDatabases");
((PaloAccountImpl) acc).setConnection(con);
} catch (Throwable t) {
ConnectionPoolManager.getInstance().disconnect(acc, sessionId, "getDatabases");
throw new DbOperationFailedException(t.getMessage());
}
List <XDatabase> databases = new ArrayList<XDatabase>();
for (Database db: con.getDatabases()) {
if (db.getType() != Database.TYPE_SYSTEM &&
db.getType() != Database.TYPE_ATTRIBUTE &&