mycomponent = MyComponentA(logger)
for i in range(5):
    mycomponent.mymethod()