KModuleDeploymentUnit deploymentUnit = createDeploymentUnit(deploymentId, deployDescriptor);
if( strategy != null ) {
strategy = strategy.toUpperCase();
RuntimeStrategy runtimeStrategy;
try {
runtimeStrategy = RuntimeStrategy.valueOf(strategy);
} catch( IllegalArgumentException iae ) {
throw KieRemoteRestOperationException.badRequest("Runtime strategy '" + strategy + "' does not exist.");
}