added support of socket identities to a couple of factory beans.