context.setSecuritySource(getSecuritySource());
context.setOrganizationSource(getOrganizationSource());
context.setPortfolioStructure(new PortfolioStructure(getPositionSource()));
context.setRawComputationTargetResolver(getTargetResolver());
if (getCompilationBlacklist() != null) {
context.setGraphBuildingBlacklist(new DefaultFunctionBlacklistQuery(getCompilationBlacklist()));
}
if (getExecutionBlacklist() != null) {
context.setGraphExecutionBlacklist(new DefaultFunctionBlacklistQuery(getExecutionBlacklist()));
}
OpenGammaCompilationContext.setPermissive(context, Boolean.TRUE.equals(getPermissive()));
OpenGammaCompilationContext.setPnLRequirementsGatherer(context, getPnlRequirementsGatherer());
if (getRiskFactorsGatherer() == null) {
if (getSecuritySource() != null) {