code: static Class<?> getComponentInterface(Class<?> homeInterface,
                                            String beanName)
                      throws EJBConfigurationException
      {
          Class<?> compInterface = null;
          Method[] methods = homeInterface.getMethods();
          for (Method method : methods)
          {
              if (method.getName().startsWith("create"))
              {
                  compInterface = method.getReturnType();
  
                  if (compInterface == Void.TYPE)
                  {
                      // Log the error and throw meaningful exception.        d457128.2
                      Tr.error(tc, "JIT_VOID_CREATE_RETURN_CNTR5018E",
                               new Object[] { beanName,
                                             homeInterface.getName(),
                                             method.getName() });
                      throw new EJBConfigurationException("EJB home interface " + homeInterface.getName() +
                                                          " 'create' method must return the component interface : " +
                                                          method + " : " + beanName);
                  }
  
                  break;
              }
          }
  
          if (compInterface == null)
          {
              // Log the error and throw meaningful exception.              d457128.2
              Tr.error(tc, "JIT_NO_CREATE_METHOD_CNTR5019E",
                       new Object[] { beanName,
                                     homeInterface.getName() });
              throw new EJBConfigurationException("EJB home interface " + homeInterface.getName() +
                                                  " must define a 'create' method : " + beanName);
          }
  
          if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
              Tr.debug(tc, "getComponentInterface : " + compInterface);
  
          return compInterface;
      }
docs: d443878