Name name = new Name(dottedName);
String instanceName = name.getNamePart(0).toString();
// 1. create MonitorCommand
CommandMapper cm = CommandMapper.getInstance(instanceName);
MonitorSetCommand command = cm.mapSetCommand(dottedName, value); //throws InvalidDottedNameException
// 2. create correspondent MonitoringEvent
MonitoringEvent event = new MonitoringEvent(instanceName, dottedName, MonitoringEvent.SET_MONITOR_DATA, command);
// 3. send/receive event to instance
AdminEventResult result = AdminEventMulticaster.multicastEvent(event);
// 4. analyse the result