Added new abstract class for initalization SessionFactory to allow hibernate operations. May be it is not the best temporary solution, but it works