code: public Map<String, DesignDocument.View> generateViewsFromPersistentType(
  			final Class<?> persistentType) {
  		Assert.notNull(persistentType, "persistentType may not be null");
  		final Map<String, DesignDocument.View> views = new HashMap<String, DesignDocument.View>();
  
  		createDeclaredViews(views, persistentType);
  
  		eachField(persistentType, new Predicate<Field>() {
  			public boolean apply(Field input) {
  				if (hasAnnotation(input, DocumentReferences.class)) {
  					generateView(views, input);
  				}
  				return false;
  			}
  		});
  		return views;
  	}
docs: Generates views based on annotations found in a persistent class.
  Typically @DocumentReferences annotations.
  
  @param persistentType
  @return a Map with generated views.