/**
* Takes the temperature reading from the scanner and sets the Temperature resource property.
*/
public void takeTemperatureReading( )
{
TemperatureDocument tempDoc = TemperatureDocument.Factory.newInstance( );
IntegerMetric tempMetric =
(IntegerMetric) XmlBeansUtils.copyXmlBean( getProperties( ).getTemperature( ) ).changeType( IntegerMetric.type );
tempMetric.setLastUpdated( Calendar.getInstance( ) );
tempMetric.setBigIntegerValue( new BigInteger( "" + m_temperatureScanner.getLastTemperature( ) ) );
tempDoc.setTemperature( tempMetric );
try
{
updateResourceProperties( new SOAPElement[]
{