I am not sure why it wont work. In the osgi implementation for this function, I have used ConsoleServices class just like it was used in the original implementation. Please suggest.