code: public static Method findRequiredMethod(final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> clazz, final MethodIdentifier methodIdentifier) throws DeploymentUnitProcessingException {
          Method method = findMethod(deploymentReflectionIndex, clazz, methodIdentifier);
          if (method == null) {
              throw ServerLogger.ROOT_LOGGER.noMethodFound(methodIdentifier, clazz);
          }
          return method;
      }
docs: Finds and returns a method corresponding to the passed <code>methodIdentifier</code>.
  The passed <code>classReflectionIndex</code> will be used to traverse the class hierarchy while finding the method.
  <p/>
  Throws {@link org.jboss.as.server.deployment.DeploymentUnitProcessingException} if no such method is found.
  
  @param deploymentReflectionIndex The deployment reflection index
  @param clazz                     The class to search
  @param methodIdentifier          The method identifier of the method being searched for
  @return
  @throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
  If no such method is found