XMBeanOperationMetaData operation = new XMBeanOperationMetaData();
operation.setDescription("Access the last HistoryLength monitor reports");
operation.setName("history");
operation.setReturnType("java.lang.String");
xmbean.addOperation(operation);
XMBeanNotificationMetaData notification = new XMBeanNotificationMetaData();
notification.setDescription("A notification sent when the monitor interval expires");
notification.setName("javax.management.Notification");
notification.setNotificationType("monitor.IntervalElapsed");