code: private void createInstance() throws InvocationTargetException {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "createInstance");
  
          ManagedObjectFactory<?> ejbManagedObjectFactory = home.beanMetaData.ivEnterpriseBeanFactory;
          if (ejbManagedObjectFactory != null) {
              createInstanceUsingMOF(ejbManagedObjectFactory);
          } else {
              createInstanceUsingConstructor();
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "createInstance");
      }
docs: Creates the bean instance using either the ManagedObjectFactory or constructor.