private void changeAnnotationDocumentState(SourceDocument aSourceDocument,User aUser,AnnotationDocumentStateTransition aAnnotationDocumentStateTransition){
  AnnotationDocument annotationDocument=repository.getAnnotationDocument(aSourceDocument,aUser);
  annotationDocument.setState(AnnotationDocumentStateTransition.transition(aAnnotationDocumentStateTransition));
  try {
    repository.createAnnotationDocument(annotationDocument);
  }
 catch (  IOException e) {
    LOG.info("Unable to get the LOG file");
  }
}

private void changeAnnotationDocumentState ( SourceDocument aSourceDocument , User aUser , AnnotationDocumentStateTransition aAnnotationDocumentStateTransition ) { AnnotationDocument annotationDocument = repository . getAnnotationDocument ( aSourceDocument , aUser ) ; annotationDocument . setState ( AnnotationDocumentStateTransition . transition ( aAnnotationDocumentStateTransition ) ) ; try { repository . createAnnotationDocument ( annotationDocument ) ; } catch ( IOException e ) { LOG . info ( "Unable to get the LOG file" ) ; } }
change the state of an annotation document . used to re - open closed documents
