code: private static boolean isNt(Resource resource, String nodeTypeName) {
      if (resource != null) {
        return StringUtils.equals(resource.getResourceType(), nodeTypeName);
      }
      return false;
    }
docs: Checks if the given resource is a node with the given node type name
  @param resource Resource
  @param nodeTypeName Node type name
  @return true if resource is of the given node type