Well, I think there're no need in this. I just did it in another way with generic static method.