text: public void setSshSessionFactory(SshSessionFactory factory) {if (factory == null)throw new NullPointerException(JGitText.get().theFactoryMustNotBeNull);if (sock != null)throw new IllegalStateException(JGitText.get().anSSHSessionHasBeenAlreadyCreated);sch = factory;}