code: private ServiceRegistration registerCrud(BundleContext context, JcrCrudService crud) {
          Dictionary prop = jcromConfiguration.toDictionary();
          prop.put(Crud.ENTITY_CLASS_PROPERTY, crud.getEntityClass());
          prop.put(Crud.ENTITY_CLASSNAME_PROPERTY, crud.getEntityClass().getName());
          ServiceRegistration serviceRegistration = context.registerService(new String[]{Crud.class.getName(), JcrCrud.class.getName()}, crud, prop);
          return serviceRegistration;
      }
docs: Register the given Crud service in OSGi registry
  @param context
  @param crud
  @return