Refactoring. getContent method is to be public method.