@Override public DelEnvironment.Response call(DelEnvironment.Request req) { DelEnvironment.Response res = new DelEnvironment.Response(); res.success = false; if (req.apiKey != null && req.apiKey.length() > 0) { REInterface con = getREConnection(req.apiKey); res.success = con.deleteEnvironment(req.environmentUID); if (res.success) { ros.logInfo("DelEnvironment (UID: " + req.environmentUID + "): Done"); } else { ros.logInfo("DelEnvironment (UID: " + req.environmentUID + "): Failed"); } } else { ros.logError("DelEnvironment (UID: " + req.environmentUID + "): API key is missing!"); } return res; }