asSubclass(WadlGeneratorConfig.class);
} else if (wadlGeneratorConfigProperty instanceof String) {
configClazz = AccessController.doPrivileged(ReflectionHelper.classForNameWithExceptionPEA((String) wadlGeneratorConfigProperty)).
asSubclass(WadlGeneratorConfig.class);
} else {
throw new ProcessingException(LocalizationMessages.ERROR_WADL_GENERATOR_CONFIG_LOADER_PROPERTY(
ServerProperties.WADL_GENERATOR_CONFIG,
wadlGeneratorConfigProperty.getClass().getName()));
}
return configClazz.newInstance();
} catch (PrivilegedActionException pae) {
throw new ProcessingException(LocalizationMessages.ERROR_WADL_GENERATOR_CONFIG_LOADER(
ServerProperties.WADL_GENERATOR_CONFIG), pae.getCause());
} catch (Exception e) {
throw new ProcessingException(LocalizationMessages.ERROR_WADL_GENERATOR_CONFIG_LOADER(
ServerProperties.WADL_GENERATOR_CONFIG), e);
}
}
}