* Convert a List of LuceneWork into a byte[]
*/
@Override
public byte[] toSerializedModel(List<LuceneWork> works) {
Serializer serializer = provider.getSerializer();
serializer.luceneWorks( works );
for (LuceneWork work : works) {
if (work instanceof OptimizeLuceneWork) {
serializer.addOptimizeAll();
}