public static void main(String[] args) throws IOException, URISyntaxException {
User user = new User();
user.setName("Jim");
user.setAge(25);
Function function = new Function(){
@Override
public void render(Model model, OutputStream out, Object... obj) {
Integer i = (Integer)obj[0];
String str = (String)obj[1];
String o = String.valueOf(obj[2]);
try {
out.write((i + "|" + str + "|" + o).getBytes("UTF-8"));
} catch (IOException e) {
e.printStackTrace();
}
}};
FunctionRegistry.add("testFunction", function);
Function function2 = new Function(){
@Override
public void render(Model model, OutputStream out, Object... obj) {
try {
out.write("testFunction2".getBytes("UTF-8"));
} catch (IOException e) {