Made the method public.

So it can be called from the tests plugin