private static Bean createBean(UniqueId uniqueId, ExternalIdBundle idBundle, String name) {
FlexiBean bean = new FlexiBean();
bean.propertyDefine(UNIQUE_ID, UniqueId.class);
bean.propertyDefine(EXTERNAL_ID_BUNDLE, ExternalIdBundle.class);
bean.propertyDefine(NAME, String.class);
bean.propertySet(UNIQUE_ID, uniqueId);
bean.propertySet(EXTERNAL_ID_BUNDLE, idBundle);
bean.propertySet(NAME, name);
return bean;
}
}