HostAPI hostAPI = APILocator.getHostAPI();
// build a decent default context
Context context = VelocityUtil.getBasicContext();
context.put("user", user);
context.put("UtilMethods", new UtilMethods());
context.put("language", "1");
context.put("password", newPassword);
Host host = hostAPI.find(hostId, user, true);
context.put("host", host);