if (behaviorContext == null)
{
throw new NullPointerException("behaviorContext");
}
ClientBehaviorRenderer renderer = getRenderer(behaviorContext.getFacesContext());
if (renderer != null)
{
// If a BehaviorRenderer is available for the specified behavior renderer type, this method delegates
// to the BehaviorRenderer.getScript method.
return renderer.getScript(behaviorContext, this);
}
// Otherwise, this method returns null.
return null;
}