Code sample in Java / Play Framewor / Ember