added "hasContent" method to GeneratorInterface