code: public static void setReferencesForOne(IReferences references, Object component)
  			throws ReferenceException, ConfigException {
  
  		if (component instanceof IReferenceable)
  			((IReferenceable) component).setReferences(references);
  	}
docs: Sets references to specific component.
  
  To set references components must implement IReferenceable interface. If they
  don't the call to this method has no effect.
  
  @param references the references to be set.
  @param component  the component to set references to.
  @throws ReferenceException when no references found.
  @throws ConfigException when configuration is wrong.
  
  @see IReferenceable