|| !_wapSourcePort.getText().trim().equals("")
|| !_wapUser.getText().trim().equals("")
|| !_wapPassword.getText().trim().equals("")
|| _wapEnableWTLS.getChecked()) {
final WapOptions wapOptions = new WapOptions();
wapOptions.setWapGatewayApn(_wapGatewayApn.getText().trim());
wapOptions.setWapGatewayIp(_wapGatewayIp.getText().trim());
wapOptions.setWapGatewayPort(_wapGatewayPort.getText().trim());
wapOptions.setWapSourceIp(_wapSourceIp.getText().trim());
wapOptions.setWapSourcePort(_wapSourcePort.getText().trim());
wapOptions.setTunnelAuthUsername(_wapUser.getText().trim());
wapOptions.setTunnelAuthPassword(_wapPassword.getText().trim());
wapOptions.setWapEnableWTLS(_wapEnableWTLS.getChecked());
factory.setTransportTypeOptions(TransportInfo.TRANSPORT_WAP,
wapOptions);
}