@Path(ResourcePathConstants.BasicRegistryConstants.VERSION)
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public Response getVersion() {
AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
try {
Version version = airavataRegistry.getVersion();
if (version != null) {
Response.ResponseBuilder builder = Response.status(Response.Status.OK);
builder.entity(version);
return builder.build();
} else {