} else if (m_customReplacements != null) {
CmsUUID replacementId = m_customReplacements.get(originalElement.getId());
if (replacementId != null) {
return new CmsContainerElementBean(
replacementId,
<BUG>originalElement.getFormatterId(),
originalElement.getIndividualSettings(),
originalElement.isCreateNew());</BUG>
} else {
if ((m_typesWithRequiredReplacements != null)

} else if (m_customReplacements != null) {
CmsUUID replacementId = m_customReplacements.get(originalElement.getId());
if (replacementId != null) {
return new CmsContainerElementBean(
replacementId,
maybeReplaceFormatter(originalElement.getFormatterId()),
maybeReplaceFormatterInSettings(originalElement.getIndividualSettings()),
originalElement.isCreateNew());
} else {
if ((m_typesWithRequiredReplacements != null)
