}
// 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 {
// TODO : adapt for other archives
throw new UnsupportedOperationException("Can only manage injection for Client Deployable. Deployable found is '"
+ deployable + "'.");
}