if (!hasTemplate || pkg.getName().equals("")) {
//CUSTOM
pkg.setName("New Package");
//END CUSTOM
}
PackageHeader ph = pkg.getPackageHeader();
if (!hasTemplate) {
ph.setXPDLVersion("1.0");
ph.setVendor("Together");
}
ph.setCreated(Utils.getCurrentDateAndTime());
Namespaces nss = pkg.getNamespaces();
Namespace ns = createXPDLObject(nss, "", true);
ns.setName("xpdl");
ns.setLocation("http://www.wfmc.org/2002/XPDL1.0");