}
//check that the export manager can handle export by value
final ExportManager exportManager = producer.getExportManager();
if (exportByValueRequired && !exportManager.supportsExportByValue())
{
//TODO: instead of passing a string here, we should pass a resource so that its localized
WSRP2ExceptionFactory.throwWSException(ExportByValueNotSupported.class, "The consumer is requesting portlets to be exported by value, but this consumer only supports export by reference.", null);
}