private void addSensorDescription(final RegisterSensor regSensor, final ParameterContainer parameters) throws OXFException { final SensorDescription sensorDesc = regSensor.addNewSensorDescription(); SensorMLDocument sensorDescripiton = null; try { sensorDescripiton = SensorMLDocument.Factory.parse((String) parameters.getParameterShellWithCommonName(REGISTER_SENSOR_ML_DOC_PARAMETER).getSpecifiedValue()); } catch (final XmlException e) { LOGGER.error(String.format("Exception thrown: %s", e.getMessage()), e); } sensorDesc.set(sensorDescripiton); }