LPS-39798

Basically, ive extracted registration code in new methods, and now call them from the same place where javadoc util is called. The reason is that portal deployed from the queue (once dependencies are resolved) does not get processed - ie it was processed too early, when bean context was not yet avail.