To get a global asset attribute object from the repository, use RAMSession.getAllAssetAttributes(), RAMSession.getAssetAttribute(String name) or RAMSession.getAssetAttributeByURI(String URI).
//Fetch all asset attributes
RAMAssetAttribute[] allAssetAttributes = session.getAllAssetAttributes();
//Fetch an asset attribute by name
RAMAssetAttribute assetAttribute = session.getAssetAttribute("Asset Attribute Name");