src/authoring/views/EntityView.java
public void saveEntity(String entityType, Map<Class, Object[]> componentAttributes) {

		Image image = DataRead.loadImage((String) componentAttributes.get(Sprite.class)[0]);

		if(tabPane.getTabs().isEmpty() || !hasTab(entityType) ) { 
			addTab(entityType);
		}   
		for(Tab tab : tabPane.getTabs()) {
			if(tab.getId().equals(entityType)) {
				((EntityTab) tab).addNewEntity(entityType, componentAttributes);
			}
		}
	}
/**
	 * Called when a EntityBuilderView is closed
	 * @param entityType String representing the type of entity that this object represents
	 * @param componentAttributes Map<Class, Object[]> representing the class of a component and an object[] representing all the arguments the component takes in
	 */
Called when a EntityBuilderView is closed
@param entityType String representing the type of entity that this object represents
@param componentAttributes Map representing the class of a component and an object[] representing all the arguments the component takes in
Called when a EntityBuilderView is closed @param entityType String representing the type of entity that this object represents @param componentAttributes Map representing the class of a component and an object [] representing all the arguments the component takes in
public void saveEntity(String entityType, Map<Class, Object[]> componentAttributes) {
		Image image = DataRead.loadImage((String) componentAttributes.get(Sprite.class)[0]);
		if(tabPane.getTabs().isEmpty() || !hasTab(entityType) ) { 
			addTab(entityType);
		}   
		for(Tab tab : tabPane.getTabs()) {
			if(tab.getId().equals(entityType)) {
				((EntityTab) tab).addNewEntity(entityType, componentAttributes);
			}
		}
	}
public void saveEntity ( String entityType , Map < Class , Object [ ] > componentAttributes ) { Image image = DataRead . loadImage ( ( String ) componentAttributes . get ( Sprite . class ) [ 0 ] ) ; if ( tabPane . getTabs ( ) . isEmpty ( ) || ! hasTab ( entityType ) ) { addTab ( entityType ) ; } for ( Tab tab : tabPane . getTabs ( ) ) { if ( tab . getId ( ) . equals ( entityType ) ) { ( ( EntityTab ) tab ) . addNewEntity ( entityType , componentAttributes ) ; } } }
Called when a EntityBuilderView is closed
 @param entityType String representing the type of entity that this object represents
 @param componentAttributes Map<Class, Object[]> representing the class of a component and an object[] representing all the arguments the component takes in
Called when a EntityBuilderView is closed @param entityType String representing the type of entity that this object represents @param componentAttributes Map<Class Object [] > representing the class of a component and an object [] representing all the arguments the component takes in