public void executeToKmf(ExecuteInstance ei) {
checkNull(ei, "Cannot convert null!");
net.cloudml.core.ExecuteInstance kExecute = factory.createExecuteInstance();
convertProperties(ei, kExecute, factory);
convertResources(ei, kExecute, factory);
kExecute.setName(ei.getName());
assert (ei.getProvidedEnd() != null);
net.cloudml.core.ProvidedExecutionPlatformInstance o=providedExecutionPlatformInstances.get(calculateExecutionPlatformIdentifier(ei.getProvidedEnd()));
assert (o != null);
kExecute.setProvidedExecutionPlatformInstance(providedExecutionPlatformInstances.get(calculateExecutionPlatformIdentifier(ei.getProvidedEnd())));
kExecute.setRequiredExecutionPlatformInstance(requiredExecutionPlatformInstances.get(calculateExecutionPlatformIdentifier(ei.getRequiredEnd())));
kDeploy.addExecutesInstances(kExecute);
}