restored scheme choosing logic in webfinger service.