private static boolean determineAvailabilityOfResourceBundleControl() { try { final ResourceBundle.Control dummyControl = ValidatorBundleLocator.AggregateResourceBundle.CONTROL; if (dummyControl == null) { return false; } else { final Method getModule = (Method) run(GetMethod.action(Class.class, "getModule")); if (getModule == null) { return true; } else { final Object module = getModule.invoke(ValidatorBundleLocator.class); final Method isNamedMethod = (Method) run(GetMethod.action(module.getClass(), "isNamed")); final boolean isNamed = (Boolean) isNamedMethod.invoke(module); return !isNamed; } } } catch (final Throwable var5) { LOGGER.info(Messages.MESSAGES.unableToUseResourceBundleAggregation()); return false; } }
private static boolean determineAvailabilityOfResourceBundleControl() { try { final ResourceBundle.Control dummyControl = ValidatorBundleLocator.AggregateResourceBundle.CONTROL; if (dummyControl == null) { return false; } else { final Method getModule = (Method) run(GetMethod.action(Class.class, "getModule")); if (getModule == null) { return true; } else { final Object module = getModule.invoke(ValidatorBundleLocator.class); final Method isNamedMethod = (Method) run(GetMethod.action(module.getClass(), "isNamed")); final boolean isNamed = (Boolean) isNamedMethod.invoke(module); return !isNamed; } } } catch (final Throwable var5) { LOGGER.info(Messages.MESSAGES.unableToUseResourceBundleAggregation()); return false; } }
log.info( MESSAGES.unableToUseResourceBundleAggregation() ); return false;
log.info( MESSAGES.unableToUseResourceBundleAggregation() ); return false;