class AssetGroup {

    public void addAsset(Asset asset) {
        if (_type != asset.getType()) {
            throw new IllegalArgumentException("Invalid asset type: " + toString() + ", " + asset);
        }
        _assets.add(asset);
    }

}