Remove the statics

It may be better to make RegistryService a singleton (i.e. getInstance(), and private constructor).