(bug 54540) Allow specifying a custom site in GeneratorFactory

patch submitted by gallaecio

Change-Id: I1970b95caad1dbdf62a29a2bcb022672477fa148