Changed ObjectService by adding optimization for generateObjectID()