refactoring some methods in RegistrationManager.java and IRegistration.java