public String getContent(Long userId, Problemsolution problemsolution,
ProblemsolutionReply psr, String useState) throws EasyJException {
StringBuffer buffer = new StringBuffer();
SingleDataProxy sdp = SingleDataProxy.getInstance();
ProblemsolutionEvaluation pse = new ProblemsolutionEvaluation();
ProblemsolutionReplyEvaluation psre = new ProblemsolutionReplyEvaluation();
if (problemsolution != null) {
boolean flag = true;
boolean stageflag1 = true;
boolean stageflag2 = true;
boolean stageflag3 = true;
int j = 0;
ArrayList pses = problemsolution.getProblemsolutionEvaluations();
while (flag == true && j < pses.size()) {
pse = (ProblemsolutionEvaluation) pses.get(j);
if (pse.getCreatorId().intValue() == userId.intValue()) {
flag = false;
}
j++;
}
ProblemsolutionEvaluation pse_stage = new ProblemsolutionEvaluation();
pse_stage.setProblemsolutionId(problemsolution
.getProblemsolutionId());
pse_stage.setStage(1);
ArrayList pses_stage1 = sdp.query(pse_stage);
pse_stage.setStage(2);
ArrayList pses_stage2 = sdp.query(pse_stage);
FinalsolutionEvaluation fse = new FinalsolutionEvaluation();
Finalsolution fs = new Finalsolution();
fs.setProblemsolutionId(problemsolution.getProblemsolutionId());
try {