}
public String getRegisterUserTemplate(String username, String userpass, String email, Long default_lang_id){
try {
Fieldlanguagesvalues labelid506 = Fieldmanagment.getInstance().getFieldByIdAndLanguage(new Long(506), default_lang_id);
Fieldlanguagesvalues labelid507 = Fieldmanagment.getInstance().getFieldByIdAndLanguage(new Long(507), default_lang_id);
Fieldlanguagesvalues labelid508 = Fieldmanagment.getInstance().getFieldByIdAndLanguage(new Long(508), default_lang_id);
Fieldlanguagesvalues labelid509 = Fieldmanagment.getInstance().getFieldByIdAndLanguage(new Long(509), default_lang_id);
Fieldlanguagesvalues labelid510 = Fieldmanagment.getInstance().getFieldByIdAndLanguage(new Long(510), default_lang_id);
Fieldlanguagesvalues labelid511 = Fieldmanagment.getInstance().getFieldByIdAndLanguage(new Long(511), default_lang_id);
/* lets make a Context and put data into it */
VelocityContext context = new VelocityContext();
context.put("username", username);
context.put("userpass", userpass);
context.put("mail", email);
context.put("labelid506", labelid506.getValue());
context.put("labelid507", labelid507.getValue());
context.put("labelid508", labelid508.getValue());
context.put("labelid509", labelid509.getValue());
context.put("labelid510", labelid510.getValue());
context.put("labelid511", labelid511.getValue());
/* lets render a template */
StringWriter w = new StringWriter();
Velocity.mergeTemplate(templateName, "UTF-8", context, w );