private void addOperations(ResourceNode parent, Directory directory, String sessionID)
      throws Exception {
    for (DynamicMBeanOperation mbOperation : manager.getMethods().values()) {
      ResourceNode operationNode =
          ResourceFactory.addInstance(
              ResourceType.OPERATION, mbOperation.getName(), parent, directory, sessionID);

      Operation operation = (Operation) operationNode.getResource();
      operation.setOperation(mbOperation);
    }
  }
 public ObjectName getObjectName() {
   return manager.getName();
 }