public Map getFilterMap() {
   if (filter == null) {
     return null;
   } else {
     return ServiceMasterGroupObjectHelper.toMap(
         (ServiceMasterGroupObjectFilter) filter, new HashMap(), "ServiceMasterGroup");
   }
 }
 /**
  * Constructor to create a ServiceMasterGroupFindNoOpRequest
  *
  * @param id Unique request name
  * @param noOpIn Simulated response object
  */
 public ServiceMasterGroupFindNoOpRequest(String id, ServiceMasterGroupObjectDataList noOpIn) {
   super(id, "ServiceMasterGroupFindNoOpRequest");
   if (noOpIn != null) {
     Map mapList = new HashMap();
     Map[] mapArray = null;
     mapList.put("Count", noOpIn.getLength());
     mapList.put("TotalCount", noOpIn.getTotalCount());
     mapList.put("Index", noOpIn.getIndex());
     mapArray = new HashMap[noOpIn.getLength()];
     for (int i = 0; i < noOpIn.getLength(); i++) {
       mapArray[i] = ServiceMasterGroupObjectHelper.toMap(noOpIn.getArray()[i], null);
       addInput("ServiceMasterGroup", noOpIn);
     }
     addInput("ServiceMasterGroup", mapList);
   }
 }
 public static ServiceMasterGroupFindBulkParticipantQuery fromQueryMap(Map input) {
   ServiceMasterGroupFindBulkParticipantQuery retVal =
       new ServiceMasterGroupFindBulkParticipantQuery();
   retVal.setContext(BSDMSessionContext.fromMap(input));
   Map methodMap = (Map) input.get("ServiceMasterGroupFind");
   if (methodMap != null) {
     Map filterMap = (Map) methodMap.get("ServiceMasterGroup");
     Integer index = (Integer) methodMap.get("Index");
     if (filterMap != null) {
       retVal.setFilter(ServiceMasterGroupObjectHelper.getFilter(filterMap));
     }
     if (retVal.getFilter() != null && index != null) {
       retVal.getFilter().setIndex(index);
     }
   }
   return retVal;
 }
 /**
  * Retrieves the ServiceMasterGroupObjectDataList passed into the constructor
  *
  * @return Simulated response
  */
 public ServiceMasterGroupObjectDataList getOutput() {
   return ServiceMasterGroupObjectHelper.fromMapList(outputMap, "ServiceMasterGroupList");
 }