if (null==sFileName)
throw new NullPointerException("Activity.addAttachment() File name may not be null");
File oDir = new File(sDirPath);
if (!oDir.isDirectory())
throw new FileNotFoundException("Activity.addAttachment() "+sDirPath+" is not a directory");
if (!oDir.exists())
throw new FileNotFoundException("Activity.addAttachment() Directory "+sDirPath+" not found");
File oFile = new File(Gadgets.chomp(sDirPath,File.separatorChar)+sFileName);
if (!oFile.exists())
throw new FileNotFoundException("Activity.addAttachment() File "+Gadgets.chomp(sDirPath,File.separatorChar)+sFileName+" not found");
// Get Id. of Domain to which Contact belongs
Integer iDom = ACLDomain.forWorkArea(oConn, getString(DB.gu_workarea));
if (DebugFile.trace) DebugFile.writeln("id_domain="+iDom);