'New instance of object mapper for opening map scope.
Args:
top_value: Parent of nested object.
Returns:
New instance of object mapper.'

def BuildMapping(self, top_value):

    result = _ObjectMapper()
    if isinstance(top_value, self.default_class):
        result.value = top_value
    return result
