public static int createProxyObject(int luaState,String implem) throws LuaException {
  LuaState L=LuaStateFactory.getExistingState(luaState);
synchronized (L) {
    try {
      if (!(L.isTable(2)))       throw new LuaException("Parameter is not a table. Can't create proxy.");
      LuaObject luaObj=L.getLuaObject(2);
      Object proxy=luaObj.createProxy(implem);
      L.pushJavaObject(proxy);
    }
 catch (    Exception e) {
      throw new LuaException(e);
    }
    return 1;
  }
}

public static int createProxyObject ( int luaState , String implem ) throws LuaException { LuaState L = LuaStateFactory . getExistingState ( luaState ) ; synchronized ( L ) { try { if ( ! ( L . isTable ( 2 ) ) ) throw new LuaException ( "Parameter is not a table. Can't create proxy." ) ; LuaObject luaObj = L . getLuaObject ( 2 ) ; Object proxy = luaObj . createProxy ( implem ) ; L . pushJavaObject ( proxy ) ; } catch ( Exception e ) { throw new LuaException ( e ) ; } return 1 ; } }
function that creates an object proxy and pushes it into the stack
