public static Map<String,String> buildReferenceMap( Instance instance ) {

		Map<String,String> result = new HashMap<> ();
		String instancePath = InstanceHelpers.computeInstancePath( instance );

		result.put( ROBOCONF_INSTANCE_NAME, instance.getName());
		result.put( ROBOCONF_INSTANCE_PATH, instancePath );
		result.put( ROBOCONF_COMPONENT_NAME, instance.getComponent().getName());
		result.put( ROBOCONF_CLEAN_INSTANCE_PATH, cleanInstancePath( instancePath ));
		result.put( ROBOCONF_CLEAN_REVERSED_INSTANCE_PATH, cleanReversedInstancePath( instancePath ));

		return result;
	}
public static Map < String , String > buildReferenceMap ( Instance instance ) { Map < String , String > result = new HashMap < > ( ) ; String instancePath = InstanceHelpers . computeInstancePath ( instance ) ; result . put ( ROBOCONF_INSTANCE_NAME , instance . getName ( ) ) ; result . put ( ROBOCONF_INSTANCE_PATH , instancePath ) ; result . put ( ROBOCONF_COMPONENT_NAME , instance . getComponent ( ) . getName ( ) ) ; result . put ( ROBOCONF_CLEAN_INSTANCE_PATH , cleanInstancePath ( instancePath ) ) ; result . put ( ROBOCONF_CLEAN_REVERSED_INSTANCE_PATH , cleanReversedInstancePath ( instancePath ) ) ; return result ; }
Builds a map with the variables defined by this class.
@param instance a non-null instance
@return a non-null map where all the properties here are mapped to their values for this instance