Added createObject() with isIdAutogen parameter.