currentOperationalStateDocument.addNewCurrentOperationalState();
resourceProperty.add(currentOperationalStateDocument);
resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.LASTOPERATIONALSTATETRANSITION);
LastOperationalStateTransitionDocument lastOperationalStateTransitionDocument = LastOperationalStateTransitionDocument.Factory.newInstance();
StateTransitionType stateTransitionType = lastOperationalStateTransitionDocument.addNewLastOperationalStateTransition();
stateTransitionType.addNewEnteredState();
stateTransitionType.addNewPreviousState();
stateTransitionType.setTime(Calendar.getInstance());
stateTransitionType.setTransitionIdentifier("");
resourceProperty.add(lastOperationalStateTransitionDocument);
/*----------------- MOWS EndpointIdentification props -----------------*/
resourceProperty = resourcePropertySet.get(WeatherstationPropertyQNames.ENDPOINTREFERENCE);
EndpointReferenceDocument endpointReferenceDocument = EndpointReferenceDocument.Factory.newInstance();