private static DeploymentInternal deploy(boolean recovery, String deploymentId, int statementIdFirstStatement, EPCompiled compiled, StatementNameRuntimeOption statementNameResolverRuntime, StatementUserObjectRuntimeOption userObjectResolverRuntime, StatementSubstitutionParameterOption substitutionParameterResolver, EPRuntimeSPI epRuntime) throws EPDeployException {
epRuntime.getServicesContext().getVariableManagementService().setLocalVersion();
try {
return deploySafe(recovery, deploymentId, statementIdFirstStatement, compiled, statementNameResolverRuntime, userObjectResolverRuntime, substitutionParameterResolver, epRuntime);
} catch (EPDeployException ex) {
throw ex;
} catch (Throwable t) {
throw new EPDeployException(t.getMessage(), t);
}
}