DeployerClient main = getMainDeployer();
Deployment parent = createSimpleDeployment("Parent");
ContextInfo ci1 = factory.addContext(parent, "C1");
Attachments attachments1 = ci1.getPredeterminedManagedObjects();
MutableAttachments ma1 = (MutableAttachments) attachments1;
ma1.addAttachment("1.1", "1", String.class);
ma1.addAttachment("1.2", "2", String.class);
ContextInfo ci2 = factory.addContext(parent, "C2");
Attachments attachments2 = ci2.getPredeterminedManagedObjects();
MutableAttachments ma2 = (MutableAttachments) attachments2;
ma2.addAttachment("2.1", "3", String.class);
ma2.addAttachment("2.2", "4", String.class);
main.addDeployment(parent);