code: public AspFactory createAspFactory(String aspName, String associationName, boolean isHeartBeatEnabled) throws Exception {
          long aspid = 0L;
          boolean regenerateFlag = true;
  
          while (regenerateFlag) {
              aspid = AspFactoryImpl.generateId();
              if (aspfactories.size() == 0) {
                  // Special case where this is first Asp added
                  break;
              }
  
              for (FastList.Node<AspFactory> n = aspfactories.head(), end = aspfactories.tail(); (n = n.getNext()) != end;) {
                  AspFactoryImpl aspFactoryImpl = (AspFactoryImpl) n.getValue();
                  if (aspid == aspFactoryImpl.getAspid().getAspId()) {
                      regenerateFlag = true;
                      break;
                  } else {
                      regenerateFlag = false;
                  }
              }// for
          }// while
  
          return this.createAspFactory(aspName, associationName, aspid, isHeartBeatEnabled);
      }
docs: Create new {@link AspFactoryImpl} without passing optional aspid
  
  @param aspName
  @param associationName
  @return
  @throws Exception