// Get Deployable
IDeployable<?> deployable = null;
try {
deployable = DeployableHelper.getDeployable(this.archive);
} catch (DeployableHelperException e) {
throw new ArchiveInjectionException("Unable to get a deployable on archive '" + this.archive + "'.", e);
}
// Client Archive ?
if (CARDeployable.class.isInstance(deployable)) {
// Create metadata
ICarDeployableMetadata carDeployableMetadata = null;
try {
carDeployableMetadata = new CarDeployableMetadataFactory().createDeployableMetadata(CARDeployable.class
.cast(deployable), classLoader);
} catch (DeployableMetadataException e) {
throw new ArchiveInjectionException("Unable to get metadata on archive '" + this.archive + "'.", e);
}
// Use only common part
this.metadataCollection = carDeployableMetadata.getCarClassMetadataCollection();
} else {