private static List<Message> computeMessagesForSimpleTransition(ZNRecord idealStateRecord) {
    List<Message> msgList = new ArrayList<Message>();

    IdealState idealState = new IdealState(idealStateRecord);
    for (String stateUnitKey : idealState.getPartitionSet()) {
      Map<String, String> instanceStateMap;
      instanceStateMap = idealState.getInstanceStateMap(stateUnitKey);
    }

    return msgList;
  }
 private int getNumPartitions(String dbName) {
   logger.debug("dbName: " + dbName);
   HelixDataAccessor helixDataAccessor = _cmConnector.getManager().getHelixDataAccessor();
   Builder keyBuilder = helixDataAccessor.keyBuilder();
   ZNRecord rec = helixDataAccessor.getProperty(keyBuilder.idealStates(dbName)).getRecord();
   if (rec == null) {
     logger.debug("rec is null");
   }
   IdealState state = new IdealState(rec);
   return state.getNumPartitions();
 }