destinationDataStore = (DestinationDataStore) obj;
editingDomain = AdapterFactoryEditingDomain.getEditingDomainFor(destinationDataStore);
if (editingDomain != null) {
Collection<?> descriptors = editingDomain.getNewChildDescriptors(destinationDataStore, null);
for (Object descriptor: descriptors) {
CommandParameter parameter = (CommandParameter) descriptor;
if (parameter.getFeature() == RfcPackage.Literals.DESTINATION_DATA_STORE__ENTRIES) {
destinationDataStoreEntry = (DestinationDataStoreEntryImpl) parameter.getValue();
createDestinationDataStoreEntryCommand = CreateChildCommand.create(editingDomain, destinationDataStore, descriptor, Collections.singletonList(destinationDataStore));
continue;
} else if (parameter.getFeature() == RfcPackage.Literals.DESTINATION_DATA_STORE__DESTINATION_DATA) {
destinationData = (DestinationData) parameter.getValue();
createDestinationDataCommand = CreateChildCommand.create(editingDomain, destinationDataStore, descriptor, Collections.singletonList(destinationDataStore));
continue;
}
}