Added factory method for local server rule.