A General Approach To Buhlmann Credibility Theory