instanceFactoryProvider.setObjectFactory(resource.getElement(), factory);
}
void addConversationIDFactories(List<Member> names) {
ObjectFactory<String> factory = new ConversationIDObjectFactory();
for (Member name : names) {
if (name instanceof Field) {
JavaElementImpl element = new JavaElementImpl((Field)name);
element.setClassifer(ConversationID.class);
instanceFactoryProvider.setObjectFactory(element, factory);