//Fetch a pending asset
AssetIdentification revisedId = new AssetIdentification(GUID, version,true);
RAMAsset revised= session.getAsset(revisedId);
//Fetch main asset
RAMAsset main = session.getAsset(revised.getMainAssetId());
//Back to the pending
revised = session.getAsset(main.getPendingAssetId());