protected boolean canBeDeployed(Deployable newDeployable){
  final Set<String> newDeployableContextSet=getWebContextsSet(newDeployable);
  for (  Deployable deployedDeployable : this.deployedDeployables) {
    for (    String webContext : getWebContexts(deployedDeployable)) {
      if (newDeployableContextSet.contains(webContext)) {
        return false;
      }
    }
  }
  return true;
}

protected boolean canBeDeployed ( Deployable newDeployable ) { final Set < String > newDeployableContextSet = getWebContextsSet ( newDeployable ) ; for ( Deployable deployedDeployable : this . deployedDeployables ) { for ( String webContext : getWebContexts ( deployedDeployable ) ) { if ( newDeployableContextSet . contains ( webContext ) ) { return false ; } } } return true ; }
checks whether the given deployable can actually be deployed and whether a deployable has a web context path that already exist in another previously deployed deployable .
