@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public Response getPublishedWorkflowNames() {
AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
try {
List<String> publishedWorkflowNames = airavataRegistry.getPublishedWorkflowNames();
PublishWorkflowNamesList publishWorkflowNamesList = new PublishWorkflowNamesList();
publishWorkflowNamesList.setPublishWorkflowNames(publishedWorkflowNames);
if (publishedWorkflowNames.size() != 0) {
Response.ResponseBuilder builder = Response.status(Response.Status.OK);
builder.entity(publishWorkflowNamesList);
return builder.build();
} else {