/**
* GlassFish can override to specify their product version
*/
protected String getProductId() {
if (habitat != null) {
VersionInfo versionInfo = habitat.getService(VersionInfo.class);
if (productId.isEmpty() && versionInfo != null) {
StringBuilder sb = new StringBuilder();
sb.append(versionInfo.getAbbreviatedProductName());
sb.append(' ');
sb.append(versionInfo.getVersionPrefix());
sb.append(versionInfo.getMajorVersion());
sb.append('.');
sb.append(versionInfo.getMinorVersion());
productId = sb.toString();
}
}
return productId;
}