Make adding a classloader a protected method

easier testability and it may need to be enhanced in the future