public void renderGiven(Given given) {
StringBuffer phrase = new StringBuffer();
phrase.append(previousComponentWasA(Given.class) ? "and " : "Given ");
if (given instanceof GivenScenario) {
Scenario givenScenario = ((GivenScenario) given).getScenario();
phrase.append(new CamelCaseConverter(givenScenario).toPhrase());
}
else {
phrase.append(new CamelCaseConverter(given).toPhrase());
}
previousComponent = given;
out.println(phrase);
}