To move an asset to the retired state, use RAMAsset.setAction(RAMAction) and pass in RAMAction.RETIRE.
//Retire an Asset
newAsset.setAction(RAMAction.RETIRE);
session.put(newAsset, new NullProgressMonitor());