/** * Opens an already existing storage in means that it prepares it for write. * * @param storageData Storage to open. * @throws StorageException When storage with provided {@link StorageData} does not exists. When * storage opening fails. */ @MethodLog public void openStorage(StorageData storageData) throws StorageException { if (!storageManager.isStorageExisting(storageData)) { throw new StorageException("The storage " + storageData + " does not exsist on the CMR."); } try { storageManager.openStorage(storageData); } catch (Exception e) { throw new StorageException( "Exception occurred trying to open storage" + storageData + ".", e); } }