public void removeLocation(String path) { if (path == null || path.length() == 0) { String message = Logging.getMessage("nullValue.FileStorePathIsNull"); Logging.logger().severe(message); // Just warn and return. return; } StoreLocation location = this.storeLocationFor(path); if (location == null) // Path is not part of this FileStore. return; if (location.equals(this.writeLocation)) { String message = Logging.getMessage("FileStore.CannotRemoveWriteLocation", path); Logging.logger().severe(message); throw new IllegalArgumentException(message); } this.readLocations.remove(location); }