try {
ArrayList<Description> list = MySqlAdapter.getInstance().getDescription(userId);
result = new String[list.size()];
int count = 0;
for (Iterator<Description> iterator = list.iterator(); iterator.hasNext();) {
Description description = iterator.next();
sb.append(description.getSubmissionId());
sb.append(",");
sb.append(DATE_FORMAT.format(description.getSubmissionTime()));
sb.append(",");
sb.append(description.getStatus());
sb.append(",");
sb.append(description.getConcurrency());
sb.append(",");
sb.append(description.getBatches());
sb.append(",");
sb.append(description.getEndPoint());
result[count++] = sb.toString();
sb.delete(0, sb.length());
}
} catch (Exception e) {