protected boolean isActiveSlot(String slot){
  if (logger.isDebugEnabled() || Testing.DEBUG) {
    String activeSlotListString=null;
    for (    String slotName : this.activeSlotsList) {
      if (activeSlotListString == null) {
        activeSlotListString=slotName;
      }
 else {
        activeSlotListString+=", " + slotName;
      }
    }
    logger.info("Checking slot: " + slot);
    logger.info("Active slots: " + activeSlotListString);
  }
  if ((activeSlotsList != null) && !activeSlotsList.isEmpty() && slot != null) {
    return activeSlotsList.contains(slot);
  }
  return false;
}

protected boolean isActiveSlot ( String slot ) { if ( logger . isDebugEnabled ( ) || Testing . DEBUG ) { String activeSlotListString = null ; for ( String slotName : this . activeSlotsList ) { if ( activeSlotListString == null ) { activeSlotListString = slotName ; } else { activeSlotListString += ", " + slotName ; } } logger . info ( "Checking slot: " + slot ) ; logger . info ( "Active slots: " + activeSlotListString ) ; } if ( ( activeSlotsList != null ) && ! activeSlotsList . isEmpty ( ) && slot != null ) { return activeSlotsList . contains ( slot ) ; } return false ; }
tests whether the item can be activated in specified slot .
