protected void invoke(Type type,String namespace,String localPart,String state){
  Event event=type.getEvent(localPart);
  if (event != null) {
    event.setStateName(state);
    event(event);
    return;
  }
  Property property=type.getProperty(localPart);
  if (property != null) {
    property.setStateName(state);
    if (localPart.equals(StandardDefs.PROP_UICOMPONENT_STATES)) {
      states(property);
    }
 else {
      property(property);
    }
    return;
  }
  if (type.hasDynamic()) {
    dynamicProperty(localPart,state);
    return;
  }
  unknown(namespace,localPart);
}

protected void invoke ( Type type , String namespace , String localPart , String state ) { Event event = type . getEvent ( localPart ) ; if ( event != null ) { event . setStateName ( state ) ; event ( event ) ; return ; } Property property = type . getProperty ( localPart ) ; if ( property != null ) { property . setStateName ( state ) ; if ( localPart . equals ( StandardDefs . PROP_UICOMPONENT_STATES ) ) { states ( property ) ; } else { property ( property ) ; } return ; } if ( type . hasDynamic ( ) ) { dynamicProperty ( localPart , state ) ; return ; } unknown ( namespace , localPart ) ; }
search ( in order ) the following places in our type for the given name : < li > - event < li > - property < li > - effect < li > - style < li > - dynamic property ( if target type is dynamic ) assign state - specificity here as well .
