added readByGlobalid and fixed IdManagement