try
{
buildComposite( helper, stateDeclarations );
List<Class<? extends Activator<?>>> activatorClasses = Iterables.toList(
Iterables.<Class<? extends Activator<?>>>flatten( activators, activatorsDeclarations( types ) ) );
return new ServiceModel( types, visibility, metaInfo,
new ActivatorsModel( activatorClasses ),
mixinsModel, stateModel, compositeMethodsModel,
identity, instantiateOnStartup );
}
catch( Exception e )