question: public ISicresAbstractDocumentVO updateCML ( ISicresAbstractDocumentVO document , AuthoringServiceSoapBindingStub authoringService , ContentServiceSoapBindingStub contentRepository ) throws Exception { Reference reference = new Reference ( STORE , document . getId ( ) , null ) ; Predicate predicate = new Predicate ( new Reference [ ] { reference } , null , null ) ; CheckoutResult checkOutResult = authoringService . checkout ( predicate , null ) ; Reference workingCopyReference = checkOutResult . getWorkingCopies ( ) [ 0 ] ; MimeTypes mimeTypes = new MimeTypes ( ) ; String mimeType = mimeTypes . getMimeType ( document . getName ( ) ) ; ContentFormat format = new ContentFormat ( mimeType , AlfrescoKeys . ENCODING_UTF8 ) ; Content contentResult = contentRepository . write ( workingCopyReference , Constants . PROP_CONTENT , document . getContent ( ) , format ) ; byte [ ] bytes = UtilsFile . getByteContent ( contentResult ) ; document . setContent ( bytes ) ; Predicate predicate_working_copy = new Predicate ( new Reference [ ] { workingCopyReference } , null , null ) ; NamedValue [ ] comments = new NamedValue [ ] { Utils . createNamedValue ( "description" , "El contenido ha sido actualizado" ) } ; authoringService . checkin ( predicate_working_copy , comments , false ) ; return document ; }
target:  Metodo que actualiza el contenido, versionandolo