* @return generated ObjectName
* @throws MalformedObjectNameException
*/
public ObjectName getObjectName(ManagedRoute mbean) throws MalformedObjectNameException {
Hashtable<String, String> keys = new Hashtable<String, String>();
Endpoint ep = mbean.getRoute().getEndpoint();
String ctxid = ep != null ? getContextId(ep.getContext()) : VALUE_UNKNOWN;
keys.put(KEY_CONTEXT, ctxid);
keys.put(KEY_TYPE, TYPE_ROUTES);
keys.put(KEY_ENDPOINT, getEndpointId(ep));
return new ObjectName(domainName, keys);
}