var mycomponent = MyComponentA(logger);
for (var i =0; i < 10; i++) {
  mycomponent.myMethod();
}