}
OpenGammaCompilationContext.setPermissive(context, Boolean.TRUE.equals(getPermissive()));
OpenGammaCompilationContext.setPnLRequirementsGatherer(context, getPnlRequirementsGatherer());
if (getRiskFactorsGatherer() == null) {
if (getSecuritySource() != null) {
setRiskFactorsGatherer(new DefaultRiskFactorsGatherer(getSecuritySource(), new DefaultRiskFactorsConfigurationProvider()));
}
}
if (getRiskFactorsGatherer() != null) {
OpenGammaCompilationContext.setRiskFactorsGatherer(context, getRiskFactorsGatherer());
}