code: public boolean isArtefactOfType(String artefactType, @SuppressWarnings("rawtypes") Class theClazz) {
          ArtefactHandler handler = artefactHandlersByName.get(artefactType);
          if (handler == null) {
              throw new GrailsConfigurationException(
                      "Unable to locate arefact handler for specified type: " + artefactType);
          }
  
          return handler.isArtefact(theClazz);
      }
docs: Returns true if the specified class is of the given artefact type as defined by the ArtefactHandler.
  
  @param artefactType The type of the artefact
  @param theClazz     The class
  @return true if it is of the specified artefactType
  @see grails.core.ArtefactHandler