@Override
	public void delete(ResourceSnapshot resource, WriteSession session) throws UnknownResourceException {
		DataSet dataSet = get(resource);
		try {
			logDebug(resource,"Deleting state:%n%s",dataSet);
			remove(resource.name());
			session.delete(resource);
			session.saveChanges();
		} catch (WriteSessionException e) {
			// Recover if failed
			add(resource.name(),dataSet);
			throw new ApplicationRuntimeException("Deletion failed",e);
		}
	}
@Override
	public void delete(ResourceSnapshot resource, WriteSession session) throws UnknownResourceException {
		DataSet dataSet = get(resource);
		try {
			logDebug(resource,"Deleting state:%n%s",dataSet);
			remove(resource.name());
			session.delete(resource);
			session.saveChanges();
		} catch (WriteSessionException e) {
			
			add(resource.name(),dataSet);
			throw new ApplicationRuntimeException("Deletion failed",e);
		}
	}
@ Override public void delete ( ResourceSnapshot resource , WriteSession session ) throws UnknownResourceException { DataSet dataSet = get ( resource ) ; try { logDebug ( resource , "Deleting state:%n%s" , dataSet ) ; remove ( resource . name ( ) ) ; session . delete ( resource ) ; session . saveChanges ( ) ; } catch ( WriteSessionException e ) { // Recover if failed add ( resource . name ( ) , dataSet ) ; throw new ApplicationRuntimeException ( "Deletion failed" , e ) ; } }
{@inheritDoc}<br>

Delete a person resource.
{ @inheritDoc } <br >