Create asset new version

To create a new asset, you can use RAMSession.createAssetNewVersion(Asset, String version). This will create a deep copy of the old asset with a new version. The GUID will remain the same. Once this asset is committed both assets will exist on the server.

                // Create a new asset to submit to the server
                RAMAsset newAsset = session.createAssetNewVersion(newAsset, "2.0");

                // Set asset metadata
                newAsset.setName("New Asset");
                newAsset.setCommunity(session.getCommunity("Rational Asset Manager Development"));
                newAsset.setAssetType(session.getAssetType("Documentation"));
                newAsset.setShortDescription("Sample upload asset");
                
                session.put(newAsset, new NullProgressMonitor());

Feedback