I already thought about that. I wanted just to create a first basic implemention and expects your comments .
Thanks for your suggestions, I will rewrite this method in this way.