added prepareoptions parameter to the factory search method to be able to search for a specific connector(tyepe)