project.markAsDeployDirty();
DeployData data = convertProjectToDeployData(project);
DeployCallbackImpl cb = new DeployCallbackImpl(project, this.consoleWriter);
IntegrationServer server = IntegrationServer.getInstance();
IntegrationProjectDeployer call = server.getServerCall(IntegrationProjectDeployer.class);
call.deployProject(data, cb);
return cb.waitUntilDone();
}
private DeployData convertProjectToDeployData(final IntegrationProject project) {
final ManagedProject mp = project.getExtensionObject(ManagedProject.class);