*/
protected void checkConditions(ResourceStoreRequest request, Action action)
throws ItemNotFoundException, IllegalOperationException, AccessDeniedException
{
if (!this.getLocalStatus().shouldServiceRequest()) {
throw new RepositoryNotAvailableException(this);
}
// check for writing to read only repo
// Readonly is ALWAYS read only
if (RepositoryWritePolicy.READ_ONLY.equals(getWritePolicy()) && !isActionAllowedReadOnly(action)) {