printDiagnostics(lm.getDiagnostics());
// The featureInfo property is deprecated as of 2.5.
// Use the querySupportedFeatures as follows.
System.out.println("\nLicense Features:");
printLicenseFeatures(lm.querySupportedFeatures(null));
System.out.println("\nLicense Usage:");
printLicenseUsage(lm.queryLicenseUsage(null));
System.out.println("\nLicense source availability:");