// stripping off the standard portlet prefix) so that Mojarra could find it. But
// this would not a good solution, because multiple instances of the same portlet
// would have the same session attribute names for managed-beans, and only the last
// one would get cleaned-up by Mojarra.
if (beanManager.isManagedBean(attributeName, attributeValue)) {
beanManager.invokePreDestroyMethods(attributeValue, true);
}
// Otherwise,
else {