private <DataType> void loadMap(GraphDatabaseDriver driver, GraphMappingStrategy strategy, ClassLoader classLoader, ServiceRepository repository, Property p, DataType returned, Vertex objectVertex, ObjectCache objectsBeingAccessed) {
boolean eagerLoad = false;
// property may be associated to a onetomany or manytomany mapping. in such a case, check if there is an eager loading info
OneToMany oneToMany = p.getAnnotation(OneToMany.class);
if (oneToMany != null) {
eagerLoad = FetchType.EAGER.equals(oneToMany.fetch());
}
if (!eagerLoad) {
ManyToMany manyToMany = p.getAnnotation(ManyToMany.class);
if (manyToMany != null) {
eagerLoad = FetchType.EAGER.equals(manyToMany.fetch());