public Integer process ( CMAAsset asset , String locale ) { assertNotNull ( asset , "asset" ) ; final String assetId = getResourceIdOrThrow ( asset , "asset" ) ; final String spaceId = getSpaceIdOrThrow ( asset , "asset" ) ; final String environmentId = asset . getEnvironmentId ( ) ; return service . process ( spaceId , environmentId , assetId , locale ) . blockingFirst ( ) . code ( ) ; }
Process an Asset .