Transforms the raw content data and returns the transformed data as an
array of bytes.
Parameters: data - the raw data that has to be transformed Parameters: attributes - a map of content attributes that can be used toprovide hints or parameters for the transformation the transformed data since: 1.0