Class<?> cl = Class.forName("com.caucho.license.LicenseCheckImpl");
LicenseCheck license = (LicenseCheck) cl.newInstance();
license.requirePersonal(1);
licenseErrorMessage = license.doLogging();
} catch (ConfigException e) {
licenseErrorMessage = e.getMessage();
} catch (Throwable e) {
// message should already be set above
}