Add singleton pattern to create hibernate SessionFactory once instead of everytime for each module.