public function process($definition) { $beaconConfigService = new BeaconConfigurationService(); if (!isset($definition)) { return null; } $result = null; try { $datapoint = new SimpleXMLElement($definition); if ($datapoint['type'] == "config") { $key = trim($datapoint->parameters->key . ""); $name = trim($datapoint->settings->name . ""); $value = null; if (isset($key)) { $value = $beaconConfigService->getConfigValue($key); } $result = $value; } } catch (Exception $exc) { echo $exc->getTraceAsString(); } return $result; }