{
final IAdaptable adaptable = _creationData.getDropCustomizationData();
if (adaptable != null)
{
final ICustomizationData data = (ICustomizationData) adaptable.getAdapter(ICustomizationData.class);
ContainerCreationCommand command = null;
ParentData parentData = data.getParentData();
boolean isFirstParent = true;
for (final ICustomizationData parentCustomizationData : parentData.getParentCustomizationData())
{
TagIdentifier parentTagIdentifier = parentCustomizationData.getTagIdentifier();
if (isFirstParent)
{
command = new UserCustomizedContainerCreationCommand(position, parentTagIdentifier, _creationData.getTagId(), parentCustomizationData);
isFirstParent = false;
}
else
{
command.chain(new UserCustomizedContainerCreationCommand(position, parentTagIdentifier, _creationData.getTagId(), parentCustomizationData));
}
}
return command;
}
return null;