{
PortletApplicationDefinition definition =
PortletDefinitionRegistry.getPortletApplicationDefinitionList()
.get(org.apache.pluto.portalImpl.util.ObjectID.createFromString(definitionId));
if(definition == null) {
throw new ConfigurationException("Unable to find portlet application definition. "+
"Ensure that all portlets definied within the portlet registry are correct" +
"and have been deployed.");
}
return definition;
}