protected String getLanguages(){
StringBuffer out = new StringBuffer();
try {
LanguageBean langBean = null;
Collection<LanguageBean> col = null;
col = LanguageFinderBase.findAll();
Iterator<LanguageBean> it = col.iterator();
out.append(toXML("totalno", "x"));
out.append("<status>");
out.append("OK");
out.append("</status>\n");
out.append("<step>");
out.append("GETLANGUAGES");
out.append("</step>\n");
out.append("<languages>\n");
while (it.hasNext()) {
langBean = it.next();
out.append("<lang>\n");
out.append(toXML("id", langBean.getLanguageid()));
out.append(
toXML("text", langBean.getStatus().toString()));
out.append(
toXML("tscreated", langBean.getTscreated().toString()
.substring(0, 16)));
if (null != langBean.getTsupdated()) {
out.append(
toXML("tsupdated", langBean.getTsupdated()
.toString().substring(0, 16)));
} else {
out.append(toXML("tsupdated", ""));
}
out.append(
toXML("createdby", langBean.getCreatedby()));
out.append(
toXML("updatedby", langBean.getUpdatedby()));
out.append("</lang>\n");
}
out.append("</languages>\n");
} catch (Exception e) {