int i = paramDatabase.databaseID;
String str1 = paramDatabase.getType();
String str2 = paramDatabase.getPath();
Object localObject1 = str2;
notifyServers(paramDatabase);
HashMap localHashMap;
if (str1 == "file:")
{
localHashMap = fileDatabaseMap;
try
{
localObject1 = filePathToKey(str2);
}
catch (HsqlException localHsqlException)
{
Iterator localIterator = localHashMap.keySet().iterator();
Object localObject2 = null;
while (localIterator.hasNext())
{
Object localObject3 = localIterator.next();
if (localHashMap.get(localObject3) != paramDatabase)
continue;
localObject2 = localObject3;
}
if (localObject2 != null)
localObject1 = localObject2;
}
}
else if (str1 == "res:")
{
localHashMap = resDatabaseMap;
}
else if (str1 == "mem:")
{
localHashMap = memDatabaseMap;
}
else
{
throw Trace.runtimeError(201, "DatabaseManager.lookupDatabaseObject()");
}
databaseIDMap.remove(i);
localHashMap.remove(localObject1);
if (databaseIDMap.isEmpty())
ValuePool.resetPool();
}