Actually, split/join does not work with JDK7. The following code seems to work with both:
if (name) {
name = name.split(".").join("/");
self.log("Use JDK8 method to build module names");
} else {
name = attributes.get("name");
name = name.replace(".", "/");
self.log("Use JDK7 method to build module names");
}
Cheers,