if (MAKE_UNIQUE) {
envLogic = Freedomotic.INJECTOR.getInstance(EnvironmentLogic.class);
//defensive copy to not affect the passed object with the changes
Environment pojoCopy = SerialClone.clone(obj.getPojo());
pojoCopy.setName(obj.getPojo().getName() + "-" + UidGenerator.getNextStringUid());
pojoCopy.setUUID(""); // force to assign a new random and unique UUID
//should be the last called after using setters on envLogic.getPojo()
envLogic.setPojo(pojoCopy);
}
envLogic.init();