public static int javaNew(int luaState,Class clazz) throws LuaException {
  LuaState L=LuaStateFactory.getExistingState(luaState);
synchronized (L) {
    Object ret=getObjInstance(L,clazz);
    L.pushJavaObject(ret);
    return 1;
  }
}

public static int javaNew ( int luaState , Class clazz ) throws LuaException { LuaState L = LuaStateFactory . getExistingState ( luaState ) ; synchronized ( L ) { Object ret = getObjInstance ( L , clazz ) ; L . pushJavaObject ( ret ) ; return 1 ; } }
javanew returns a new instance of a given clazz
