moved common method into service base class.