if ( mListener == null || ! mListener.isCompleted() )
{
throw new IllegalStateException();
}
final DeploymentStatus status = mListener.getDeploymentStatus();
if ( status == null || status.getStageStatus() == STATUS_CODE_FAILURE )
{
throw new IllegalStateException();
}
if ( mDidAssociate )
{
throw new IllegalStateException();
}
// OK, go ahead
final Map<String,Serializable> additionalStatus = status.getAdditionalStatus();
final String moduleID = (String)additionalStatus.get( MODULE_ID_KEY );
final Set<DeployedItemRefConfig> refs = new HashSet<DeployedItemRefConfig>();
final Set<DeployedItemRefConfigCR> proxies = getTargetProxies( getDomainRoot(), targets );
for( final DeployedItemRefConfigCR cr : proxies )