missing code in addMapping() method.