Added a class provider service to load the class which should be
published as service.
Added the classprovider as service.