class ServerInfoServiceImpl implements ServerInfoService, Diagnostic {

    public ServerInfo getServerInfo() {
        ServerInfo serverInfo = new ServerInfo();
        serverInfo.setVersion(getServerVersion());
        serverInfo.setBuild(getServerBuild());
        // this is not returning the edition name based on license
        // it returns only CE vs PRO, which is really the basic
        // distinction between community vs. commercial bits
        serverInfo.setEdition(getServerEdition());

        serverInfo.setDateFormatPattern(calendarFormatProvider.getDatePattern());
        serverInfo.setDatetimeFormatPattern(calendarFormatProvider.getDatetimePattern());

        return serverInfo;
    }

}