if ( conf != null ) {
Configuration[] aspects = conf.getChildren("aspect");
for(int i=0; i < aspects.length; i++) {
final Configuration current = aspects[i];
final String role = current.getAttribute("type", null);
PortalManagerAspect pAspect;
if ( role != null ) {
if ( aspectSelector == null ) {
throw new ConfigurationException("No selector for aspects defined.");
}
try {