return true;
}else if (createIfNotPresent){
if (!isWorkspaceProjectExists(DEFAULT_PROJECT_NAME, true)){
throw new WorkspaceProjectDoesNotExistsException(createProjName(DEFAULT_PROJECT_NAME));
}
AiravataExperiment experiment = new AiravataExperiment();
experiment.setExperimentId(experimentId);
experiment.setSubmittedDate(Calendar.getInstance().getTime());
experiment.setGateway(getGateway());
experiment.setUser(getUser());
addExperiment(DEFAULT_PROJECT_NAME, experiment);
return jpa.getWorker().isExperimentExists(experimentId);
}else{
return false;
}