Removed the custom socket factory. It seemes obsolete. instead i use
java.net.scoketfactory