private boolean isReference(Association association) {
   PropertyMapping mapping = association.getMapping();
   if (mapping != null) {
     MongoAttribute attribute = (MongoAttribute) mapping.getMappedForm();
     if (attribute != null) {
       return attribute.isReference();
     }
   }
   return true;
 }