protected AbstractBeanMetaData buildRepository(Cardinality cardinality)
{
AbstractBeanMetaData repository = new AbstractBeanMetaData("Name1", SimpleBeanRepository.class.getName());
List<CallbackMetaData> installs = new ArrayList<CallbackMetaData>();
repository.setInstallCallbacks(installs);
InstallCallbackMetaData install = new InstallCallbackMetaData();
install.setMethodName("addSimpleBean");
if (cardinality != null)
install.setCardinality(cardinality);
installs.add(install);
List<CallbackMetaData> unstalls = new ArrayList<CallbackMetaData>();
repository.setUninstallCallbacks(unstalls);
UninstallCallbackMetaData uninstall = new UninstallCallbackMetaData();
uninstall.setMethodName("removeSimpleBean");