}
}
public void registerResourceBundle(final String id, final String filename) {
try {
NiftyType niftyType = new NiftyType();
ResourceBundleType resourceBundle = new ResourceBundleType();
resourceBundle.getAttributes().set("id", id);
resourceBundle.getAttributes().set("filename", filename);
niftyType.addResourceBundle(resourceBundle);
niftyType.create(this, getTimeProvider());
if (log.isLoggable(Level.INFO)) {
log.info("registerResourceBundle");
log.info(niftyType.output());
}
} catch (Exception e) {
log.warning(e.getMessage());
}
}