Moved from JS to Java verticle