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.
try
{
setCachedFacesContext(behaviorContext.getFacesContext());
return renderer.getScript(behaviorContext, this);
}
finally
{
setCachedFacesContext(null);
}