UserWebAPI userWebAPI = WebAPILocator.getUserWebAPI();
User user = userWebAPI.getLoggedInUser(req);
boolean respectFrontendRoles = userWebAPI.isLoggedToFrontend(req);
HostVariableAPI hostVariableAPI = APILocator.getHostVariableAPI();
HostVariable hvar = hostVariableAPI.find(hvarId, user, respectFrontendRoles);
hostVariableAPI.delete(hvar, user, respectFrontendRoles);
}
public List<Map<String, Object>> getHostVariables(String hostId) throws Exception {