{
// TODO: later when we move to composite strategy, run in SafeRunner
// to protect against exceptions generated in external code.
try
{
final Region2ElementAdapter regionAdapter = new Region2ElementAdapter(
container);
// final IStructuredDocumentContext elementContext =
// IStructuredDocumentContextFactory.INSTANCE
// .getContext(container.getParentDocument(), container
// .getStartOffset());
if (containmentStrategy.isInteresting(regionAdapter))
{
containmentStrategy.validate(regionAdapter);
}
final AttributeValidatingStrategy strategy =
new AttributeValidatingStrategy(jsfValidationContext);
for (final Region2AttrAdapter attrAdapter : regionAdapter
.getAttributes().values())
{
if (strategy.isInteresting(attrAdapter))
{
strategy.validate(attrAdapter);