private boolean isEnclosingClassParameter() {

      if (enclosingClassCache == null) {
        Class<T> owningType = entity.getType();
        this.enclosingClassCache =
            owningType.isMemberClass() && type.getType().equals(owningType.getEnclosingClass());
      }

      return enclosingClassCache;
    }
    /**
     * Returns whether the {@link Parameter} maps the given {@link PersistentProperty}.
     *
     * @param property
     * @return
     */
    boolean maps(PersistentProperty<?> property) {

      P referencedProperty = entity == null ? null : entity.getPersistentProperty(name);
      return property == null ? false : property.equals(referencedProperty);
    }