container/common/src/main/java/org/mobicents/slee/container/deployment/jboss/DeployableUnit.java
public boolean hasDuplicates() {
    ArrayList<String> duplicates = new ArrayList<String>();

    // For each component in the DU ..
    for (String componentId : componentIDs) {
      // Check if it is already deployed
      if (sleeContainerDeployer.getDeploymentManager().getDeployedComponents().contains(componentId)) {
        duplicates.add(componentId);
      }
    }

    if (!duplicates.isEmpty()) {
      logger.warn("The deployable unit '" + this.diShortName + "' contains components that are already deployed. The following are already installed:");

      for (String dupComponent : duplicates) {
        logger.warn(" - " + dupComponent);
      }

      return true;
    }

    // If we got here, there's no dups.
    return false;
  }
public boolean hasDuplicates() {
    ArrayList<String> duplicates = new ArrayList<String>();

    // For each component in the DU ..
    for (String componentId : componentIDs) {
      // Check if it is already deployed
      if (sleeContainerDeployer.getDeploymentManager().getDeployedComponents().contains(componentId)) {
        duplicates.add(componentId);
      }
    }

    if (!duplicates.isEmpty()) {
      logger.warn("The deployable unit '" + this.diShortName + "' contains components that are already deployed. The following are already installed:");

      for (String dupComponent : duplicates) {
        logger.warn(" - " + dupComponent);
      }

      return true;
    }

    // If we got here, there's no dups.
    return false;
  }
Method for checking if this DU contains any component that is already deployed.
@return true if there's a component that is already deployed.