code: public SchedulerAssignment getAssignmentById(String topologyId) {
          if (this.assignments.containsKey(topologyId)) {
              return this.assignments.get(topologyId);
          }
          return null;
      }
docs: get the current assignment for the topology.