public static AssetBuilder getAssetBuilder(Asset.AssetType type) {
if(type == Asset.AssetType.Text) {
return new AssetBuilder(new TextAsset());
} else if(type == Asset.AssetType.Byte) {
return new AssetBuilder(new BinaryAsset());
} else {
throw new IllegalArgumentException("Unknown asset type " + type);
}
}