application = ByteBuffer.allocate(session.getApplicationBufferSize()); network = ByteBuffer.allocate(session.getPacketBufferSize());
	public void initEngineAndBuffers() throws NoSuchAlgorithmException,KeyStoreException,KeyManagementException,SSLException	{		if(mode == FTPConnection.AUTH_SSL_FTP_CONNECTION)		  context = SSLContext.getInstance("SSL");		else		  context = SSLContext.getInstance("TLS");	    TrustManager[] trustManagers = new TrustManager[]	    {	        new EasyX509TrustManager(null)	    };	    context.init(null, trustManagers , null);	    engine = context.createSSLEngine();	    engine.setUseClientMode(true);	    engine.setEnableSessionCreation(true);	    SSLSession session = engine.getSession();		application = ByteBuffer.allocate(session.getApplicationBufferSize());	    application = ByteBuffer.allocate(session.getApplicationBufferSize());	    network = ByteBuffer.allocate(session.getPacketBufferSize());	    network = ByteBuffer.allocate(session.getPacketBufferSize());		log.debug("Starting handshake");				engine.beginHandshake();		handshakeStatus = engine.getHandshakeStatus();		initialHandshake = true;	}