[imp][32131] Refactored method to use server variables (Fix #3886)