Before the call to setLicence() insert a call to the setLicenceEndPoint(licenseEndPoint) method of the signature object like this:
SigObj.setLicenceEndPoint(licenceEndPoint);
where licenceEndPoint is the URL location of your offline server.