ported fix for websphere myfaces version from rf4.3.6.