diff --git a/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/DeclarationRegistrationManager.java b/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/DeclarationRegistrationManager.java
index <HASH>..<HASH> 100644
--- a/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/DeclarationRegistrationManager.java
+++ b/core/src/main/java/org/ow2/chameleon/fuchsia/core/component/manager/DeclarationRegistrationManager.java
@@ -51,7 +51,10 @@ public class DeclarationRegistrationManager<T extends Declaration> {
             }
 
             Dictionary<String, Object> props = new Hashtable<String, Object>();
-            props.put("importer.id",declaration.getMetadata().get("id").toString());
+            if(declaration.getMetadata().get("id") != null){
+                props.put("importer.id",declaration.getMetadata().get("id").toString());
+
+            }
             String[] clazzes = new String[]{klass.getName()};
             ServiceRegistration registration;
             registration = bundleContext.registerService(clazzes, declaration, props);
Defensive check of id presence before tostring method