LanguageSpecificStringType reasonElement = new LanguageSpecificStringType();
reasonElement.setLang("en-US");
reasonElement.setValue(reason);
message.getReason().add(reasonElement);
}
endpoint.subscriptionEnd(message);
} catch (Exception e) {
e.printStackTrace();
}
}