code: protected IDAndRealm separateIDAndRealm(String inputString) throws WIMException {
          // initialize the method name
          String methodName = "seperateIDAndRealm";
          if (tc.isDebugEnabled()) {
              Tr.debug(tc, methodName + " " + "inputString = \"" + inputString + "\"");
          }
          String defaultRealm = getDefaultRealmName();
          if (tc.isDebugEnabled()) {
              Tr.debug(tc, methodName + " " + "Default realm name = \"" + defaultRealm + "\"");
          }
          String defaultRealmDelimiter = getCoreConfiguration().getDefaultDelimiter();
          Set<String> virtualRealms = getCoreConfiguration().getRealmNames(); //will not be null since set will always be returned
          Map<String, String> virtualRealmsDelimiter = new HashMap<String, String>();
          for (Iterator<String> itr = virtualRealms.iterator(); itr.hasNext();) {
              String virtualRealm = itr.next();
              String delimiter = getCoreConfiguration().getDelimiter(virtualRealm);
              virtualRealmsDelimiter.put(virtualRealm, delimiter);
          }
          //add default/UR realm to the list of realms to handle no VMM realm scenorio
          if (virtualRealms.size() == 0) {
              virtualRealms = new HashSet(); //if empty it will be a abstract set.So need to initialize, else will fail while adding element to it.
              virtualRealms.add(defaultRealm);
              virtualRealmsDelimiter.put(defaultRealm, defaultRealmDelimiter);
          }
  
          return seperateIDAndRealm(inputString, defaultRealm, defaultRealmDelimiter, virtualRealms,
                                    virtualRealmsDelimiter);
      }
docs: Separate the ID and realm from an input String.
  
  @param inputString String containing the ID and realm.
  
  @return WIMUserRegistryID with the ID and realm separated.
  
  @throws WIMException The default realm could not be found.
  
  @pre inputString != null
  @post $return != null
  @post $return.getId() != null
  @post $return.getRealm() != null