if(this.logger.isLoggable(Level.INFO))
{
this.logger.info(pageDefinitionClass.getName() + " will be used as page-definition.");
}
ViewConfigDescriptor newEntry = createViewConfigDescriptor(pageDefinitionClass);
if(newEntry != null)
{
ViewConfigDescriptor existingDescriptor = ViewConfigCache.getViewConfigDescriptor(newEntry.getViewConfig());
if(existingDescriptor instanceof EditableViewConfigDescriptor
&& ((EditableViewConfigDescriptor)existingDescriptor).isPartialViewConfig())
{
//in this case the alternative view-controller approach which just adds page-beans was invoked before
//-> we just have to use the page bean of the existing entry
//here we have a simple-entry! (which just contains page-bean definitions)
for(PageBeanDescriptor pageBeanDescriptor : existingDescriptor.getPageBeanDescriptors())
{
//add page-beans to the real entry
if(newEntry instanceof EditableViewConfigDescriptor)
{
((EditableViewConfigDescriptor)newEntry).addPageBean(pageBeanDescriptor.getBeanClass());