VelocityEngine () { VelocityEngine velocity = new VelocityEngine(); velocity.addProperty(RuntimeConstants.RESOURCE_LOADER, "includes"); velocity.addProperty("includes.resource.loader.class", VelocityIncludesClassLoader.class.getName()); velocity.addProperty(RuntimeConstants.VM_PERM_ALLOW_INLINE_REPLACE_GLOBAL, "true"); ClassLoaderUtil.runWithClassLoader(VelocityIncludesClassLoader.class.getClassLoader(), () -> velocity.init()); return velocity; }