added getObjId() method.