LPS-49598 Make the Transformer class available for external modules

This is the backport PR for juliocamarero/liferay-portal/pull/3014.

Thanks!