@Override
 public Component create(String name, String version) {
   entityManager.getTransaction().begin();
   Component component = new Component();
   entityManager.persist(component);
   component.setName(name);
   component.setVersion(version);
   entityManager.getTransaction().commit();
   return component;
 }
 @Override
 public ConfigProp addConfigProp(Component component, String name) {
   entityManager.getTransaction().begin();
   ConfigProp prop = new ConfigProp();
   entityManager.persist(prop);
   prop.setName(name);
   prop.setComponent(component);
   component.getConfigProps().add(prop);
   entityManager.getTransaction().commit();
   return prop;
 }