System.out.println("Handler::callback()");
// Create a Lua state
LuaState luaState = new LuaState();
try {
// Define a function
luaState.load("function add(a, b) return a + b end", "=simple");
// Evaluate the chunk, thus defining the function
luaState.call(0, 0); // No arguments, no returns
// Prepare a function call