public Response getConfigurationList(@QueryParam("key") String key) {
AiravataRegistry2 airavataRegistry = RegPoolUtils.acquireRegistry(context);
try {
List<Object> configurationList = airavataRegistry.getConfigurationList(key);
ConfigurationList list = new ConfigurationList();
Object[] configValList = new Object[configurationList.size()];
for (int i = 0; i < configurationList.size(); i++) {
configValList[i] = configurationList.get(i);
}
list.setConfigValList(configValList);
if (configurationList.size() != 0) {
Response.ResponseBuilder builder = Response.status(Response.Status.OK);
builder.entity(list);
return builder.build();
} else {