why do you define a private method ? use directly the getContent method