Attachments = new HashMap<AttachmentPoint, ObjectResourcesDetail[]>();
for (int i = 0; i < attachments.count(); i++)
{
OSDMap attachment = (OSDMap)attachments.get(i);
AttachmentPoint pt = AttachmentPoint.valueOf((attachment.get("location").asString()));
OSDArray objectsOSD = (OSDArray)attachment.get("objects");
ObjectResourcesDetail[] objects = new ObjectResourcesDetail[objectsOSD.count()];
for (int j = 0; j < objects.length; j++)