return versionLoader.getVersion();
}
public String getWelcomeBanner() {
StringWriter writer = new StringWriter();
PrintWriter out = new RenderWriter(writer);
Buffer buff = new Buffer();
for (String line : BANNER) {
buff.attrib(line, Code.CYAN);
out.println(buff);
}
out.println();
out.println(" @|bold ServiceMix| (" + getVersion() + ")");
out.println();
out.println("Type '@|bold help|' for more information.");
// If we can't tell, or have something bogus then use a reasonable default
int width = terminal.getTerminalWidth();
if (width < 1) {
width = 80;
}
out.print(StringUtils.repeat("-", width - 1));
out.flush();
return writer.toString();
}