Add Pojo support to Scala API