// Change a value
mo.getProperty("string1").setValue(getMetaValueFactory().create("changedString1"));
// Get the changed attachment
TestAttachment attachment = (TestAttachment) mo.getAttachment();
// Redeploy with our changed attachment
MutableAttachments attachments = (MutableAttachments) context.getPredeterminedManagedObjects();
attachments.addAttachment(TestAttachment.class, attachment);
main.addDeployment(context);