Bug fixes for WFS Factory.
Bug fixes for SPARQL Factory.