*
* @return A {@link IModifiableStorage}.
* @throws WebApplicationException If the storage is not modifiable.
*/
protected IModifiableStorage getModifiableStorage() throws WebApplicationException {
final IStorage storage = getStorage();
if (!storage.isModifiable()) {
throw new WebApplicationException(ResponseUtils.methodNotAllowed());
}
return (IModifiableStorage) storage;
}