/*
   * (non-Javadoc)
   * @see org.springframework.data.rest.core.mapping.ResourceMetadataProvider#getMappingFor(org.springframework.data.mapping.PersistentProperty)
   */
  ResourceMapping getMappingFor(PersistentProperty<?> property) {

    ResourceMapping propertyMapping = propertyCache.get(property);

    if (propertyMapping != null) {
      return propertyMapping;
    }

    ResourceMetadata propertyTypeMapping = getMappingFor(property.getActualType());
    propertyMapping = new PersistentPropertyResourceMapping(property, propertyTypeMapping);

    propertyCache.put(property, propertyMapping);

    return propertyMapping;
  }
 /*
  * (non-Javadoc)
  * @see org.springframework.data.rest.core.mapping.PersistentEntitiesResourceMappings#isMapped(org.springframework.data.mapping.PersistentProperty)
  */
 @Override
 public boolean isMapped(PersistentProperty<?> property) {
   return repositories.hasRepositoryFor(property.getActualType()) && super.isMapped(property);
 }