@QueryParam("experimentNameRegex") String experimentNameRegex) {
AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
try {
List<ExperimentData> experimentDataList =
airavataRegistry.searchExperiments(user, experimentNameRegex);
ExperimentDataList experimentData = new ExperimentDataList();
List<ExperimentData> experimentDatas = new ArrayList<ExperimentData>();
for (ExperimentData experimentData1 : experimentDataList) {
experimentDatas.add(experimentData1);
}
experimentData.setExperimentDataList(experimentDatas);
if (experimentDataList.size() != 0) {
Response.ResponseBuilder builder = Response.status(Response.Status.OK);
builder.entity(experimentData);
return builder.build();
} else {