if (viewFragmentSpec != null) {
if (templateFragmentSpec == null) {
templateFragmentSpec = viewFragmentSpec;
} else {
templateFragmentSpec =
new ChainedFragmentSpec(viewFragmentSpec, templateFragmentSpec);
}
}
if (nameFragmentSpec != null) {
if (templateFragmentSpec == null) {
templateFragmentSpec = nameFragmentSpec;
} else {
templateFragmentSpec =
new ChainedFragmentSpec(nameFragmentSpec, templateFragmentSpec);
}
}
response.setLocale(templateLocale);