* @param transformer the transformer
* @return the demand metadata
*/
protected DemandMetaData createDemandMetaData(Object demand, ControllerState whenRequired, ControllerState targetState, String transformer)
{
AbstractDemandMetaData admd = new AbstractDemandMetaData(demand);
if (whenRequired != null)
admd.setWhenRequired(whenRequired);
if (targetState != null)
admd.setTargetState(targetState);
if (transformer != null)
admd.setTransformer(transformer);
return admd;
}