private static String findProviderClass(ExternalContext extContext){
  WebConfiguration webConfig=WebConfiguration.getInstance(extContext);
  String provider=webConfig.getOptionValue(WebContextInitParameter.SerializationProviderClass);
  if (provider != null) {
    return provider;
  }
 else {
    return System.getProperty(SERIALIZATION_PROVIDER_PROPERTY);
  }
}

private static String findProviderClass ( ExternalContext extContext ) { WebConfiguration webConfig = WebConfiguration . getInstance ( extContext ) ; String provider = webConfig . getOptionValue ( WebContextInitParameter . SerializationProviderClass ) ; if ( provider != null ) { return provider ; } else { return System . getProperty ( SERIALIZATION_PROVIDER_PROPERTY ) ; } }
tries to find a provider class in a web context parameter . if not present it tries to find it as a system property . if still not found returns null .
