src/authoring/views/EntityView.java
private Map<String, Consumer> buildToolbarConsumerMap() {
		Map<String, Consumer> consumerMap = new HashMap<>();
		BiConsumer<String, Map<Class, Object[]>> onClose = (entityType,componentAttributes) -> {saveEntity(entityType, componentAttributes);};
		Consumer<?> newEntity = e -> {
			EntityBuilderView entityBuilderView = new EntityBuilderView(entityTypes, onClose, lang);
		};
		Consumer<?> loadEntity = e -> {loadEntity();};
		consumerMap.put("newEntity", newEntity);
		consumerMap.put("loadEntity", loadEntity);
		return consumerMap;
	}
/**
	 * Builds the consumers for the toolbar
	 * @return Map<String, Consumer> 
	 */
Builds the consumers for the toolbar
@return Map
Builds the consumers for the toolbar @return Map
private Map<String, Consumer> buildToolbarConsumerMap() {
		Map<String, Consumer> consumerMap = new HashMap<>();
		BiConsumer<String, Map<Class, Object[]>> onClose = (entityType,componentAttributes) -> {saveEntity(entityType, componentAttributes);};
		Consumer<?> newEntity = e -> {
			EntityBuilderView entityBuilderView = new EntityBuilderView(entityTypes, onClose, lang);
		};
		Consumer<?> loadEntity = e -> {loadEntity();};
		consumerMap.put("newEntity", newEntity);
		consumerMap.put("loadEntity", loadEntity);
		return consumerMap;
	}
private Map < String , Consumer > buildToolbarConsumerMap ( ) { Map < String , Consumer > consumerMap = new HashMap < > ( ) ; BiConsumer < String , Map < Class , Object [ ] > > onClose = ( entityType , componentAttributes ) -> { saveEntity ( entityType , componentAttributes ) ; } ; Consumer < ? > newEntity = e -> { EntityBuilderView entityBuilderView = new EntityBuilderView ( entityTypes , onClose , lang ) ; } ; Consumer < ? > loadEntity = e -> { loadEntity ( ) ; } ; consumerMap . put ( "newEntity" , newEntity ) ; consumerMap . put ( "loadEntity" , loadEntity ) ; return consumerMap ; }
Builds the consumers for the toolbar
 @return Map<String, Consumer>
Builds the consumers for the toolbar @return Map<String Consumer >