title: Not able to read Object values in Freemarker Template
body: <p>I am naot able to read the scala/java object values in Freemarker Templet</p>
  
  <p>I tried with this:</p>
  
  <pre><code>    case class ScheduleEmail(workOrderNo:String,
                               name:String,
                               woType:String,
                               numberOfAssets:String,
                                artisan:String,
                               dueDate:Date,priority:String)
  
      object ScheduleMailSending extends  App{
        val scheduleEmail1= List(ScheduleEmail("1", "Oil Change1", "WO", "3", "XYZ", Date.valueOf("2015-01-01"), "High"))
        val configaration = new Configuration
        configaration.setClassForTemplateLoading(this.getClass, "/")
        configaration.setObjectWrapper(new DefaultObjectWrapper())
        val data: util.HashMap[String, Object] = new util.HashMap[String, Object]
        val templet = configaration.getTemplate("schedule.ftl")
        data.put("mails",scheduleEmail1.asJava)
        val writer =new StringWriter()
       templet.process(data,writer)
        println("writer"+writer)
      }
  </code></pre>
  
  <p>and my template is-</p>
  
  <pre><code>&lt;#list mails as std&gt;
  
      WorkOrderNo:${std.workOrderNo}
      woType:${std.woType}
  
  &lt;/#l
  </code></pre>
  
  <p>i am strugling with this ERROR-</p>
  
  <pre><code>SEVERE: Error executing FreeMarker template
  FreeMarker template error:
  For "${...}" content: Expected a string or something automatically convertible to string (number, date or boolean), but this evaluated to a sequence+method (wrapper: f.e.b.SimpleMethodModel):
  ==&gt; std.workOrderNo  [in template "schedule.ftl" at line 2, column 15]
  
  The failing instruction (FTL stack trace):
  ----------
  ==&gt; ${std.workOrderNo}  [in template "schedule.ftl" at line 2, column 13]
  ----------
  
  Java stack trace (for programmers):
  </code></pre>
  
  <p>Can anybody help me with this problem</p>