Retrieving a reviewed document using the Java API

Review initiators and moderators can retrieve the reviewed document for specific stage to see the progression of the review.

// serviceClientFactory is the Service Client Factory 
Properties connectionProps = new Properties(); 
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, 
"jnp://localhost:1099"); 
           
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,ServiceClientFactoryProperties.DSC_EJB_PROTOCOL);          
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss"); 
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, 
"apink"); 
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, 
"password"); 
// Review ID 
String reviewId = "R-20100917-023543-293-4434"; 
// Review Revision (starting from 1) 
Integer revision = 1; 
ReviewCommentingAndApprovalServiceClient reviewCommentingAndApproval = new 
ReviewCommentingAndApprovalServiceClient(serviceClientFactory); 
Document reviewDocument = reviewCommentingAndApproval.getReviewDocument(reviewId, revision);

// Ethnio survey code removed