File (final File path) { File dbFile = getWcDb(path); File result = null; try { if (dbFile.exists() && dbFile.isFile()) { result = dbFile; } } catch (SecurityException e) { LOG.error("Failed to access working copy database", e); } return result; }