@Override
    public void transform() {
        this.state = workItem.getState();



        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        try {
            MarshallerWriteContext context = new MarshallerWriteContext( baos,
                                                                         null,
                                                                         null,
                                                                         null,
                                                                         null,
                                                                         this.env);
            ProtobufOutputMarshaller.writeWorkItem(context, workItem);

            context.close();
            this.workItemByteArray = baos.toByteArray();
        } catch ( IOException e ) {
            throw new IllegalArgumentException( "IOException while storing workItem " + workItem.getId() + ": " + e.getMessage() );
        }
    }
@ Override public void transform ( ) { this . state = workItem . getState ( ) ; ByteArrayOutputStream baos = new ByteArrayOutputStream ( ) ; try { MarshallerWriteContext context = new MarshallerWriteContext ( baos , null , null , null , null , this . env ) ; ProtobufOutputMarshaller . writeWorkItem ( context , workItem ) ; context . close ( ) ; this . workItemByteArray = baos . toByteArray ( ) ; } catch ( IOException e ) { throw new IllegalArgumentException ( "IOException while storing workItem " + workItem . getId ( ) + ": " + e . getMessage ( ) ) ; } }
@PreUpdate