private boolean askUninstallConfirmationQuestion() throws IOException {
if ((Boolean) session.get(Constants.INTERACTIVE_MODE)) {
final String confirmationQuestion = getFormattedMessage("service_uninstall_confirmation", serviceName);
System.out.print(confirmationQuestion);
System.out.flush();
<BUG>final PropertiesReader pr = new PropertiesReader(new InputStreamReader(System.in));
final String answer = pr.readProperty();
System.out.println();</BUG>
System.out.flush();
return "y".equalsIgnoreCase(answer);

private boolean askUninstallConfirmationQuestion() throws IOException {
if ((Boolean) session.get(Constants.INTERACTIVE_MODE)) {
final String confirmationQuestion = getFormattedMessage("service_uninstall_confirmation", serviceName);
System.out.print(confirmationQuestion);
System.out.flush();
final PropertiesReader pr = new PropertiesReader(new InputStreamReader(System.in));
String answer = "";
while (!answer.equalsIgnoreCase("y") && !answer.equalsIgnoreCase("n")) {
answer = pr.readProperty();
}
System.out.println();
System.out.flush();
return "y".equalsIgnoreCase(answer);
