added id method to ObjectDefinition