can we use this method both for the CLI version info and the status servlet? Looks like almost the same code