public void makeActive(EndpointReference referenceToWcConfigEpr) {
XmlObject newEpr = ((XmlBeansEndpointReference)wsEpr).getXmlObject(AddressingConstants.NSURI_ADDRESSING_SCHEMA);
SetResourcePropertiesDocument setResourcePropertiesDocument = SetResourcePropertiesDocument.Factory.newInstance();
SetResourcePropertiesDocument.SetResourceProperties setResourceProperties = setResourcePropertiesDocument.addNewSetResourceProperties();
UpdateType updateType = UpdateType.Factory.newInstance();
WeatherStationReferenceDocument weatherDoc = WeatherStationReferenceDocument.Factory.newInstance();
weatherDoc.setWeatherStationReference((EndpointReferenceType) newEpr);
XmlBeanUtils.addChildElement(updateType,weatherDoc);
setResourceProperties.setUpdateArray(new UpdateType[]{updateType});
ResourceStub stub = new ResourceStub(referenceToWcConfigEpr);
stub.sendRequest(setResourcePropertiesDocument,"http://foo","X");