Class<? extends GsonBuilderConfigurator> configuratorClass = getGlobalConfiguration().getGsonBuilderConfiguratorClass();
try {
return configuratorClass.newInstance();
}
catch (InstantiationException e) {
GsonBuilderConfiguratorException ex = GsonBuilderConfiguratorException.forUnableToInstantiateGsonBuilder(configuratorClass, e);
logger.fatal( ex.getMessage(), ex);
throw ex;
}
catch (IllegalAccessException e) {
GsonBuilderConfiguratorException ex = GsonBuilderConfiguratorException.forUnableToInstantiateGsonBuilder(configuratorClass, e);
logger.fatal( ex.getMessage(), ex);
throw ex;
}
}