if (LOG.isDebugEnabled()) {
LOG.debug("Prepare request received for '" + preparerName);
}
ViewPreparer preparer = preparerFactory.getPreparer(preparerName, context);
if (preparer == null && ignoreMissing) {
return;
}
if (preparer == null) {
throw new NoSuchPreparerException("Preparer '" + preparerName + " not found");
}
ComponentContext componentContext = BasicComponentContext.getContext(context);
// TODO: Temporary while preparerInstance gets refactored to throw a more specific exception.
try {
preparer.execute(context, componentContext);
} catch (Exception e) {
throw new PreparerException(e.getMessage(), e);
}
}