Simple tool for auto-generating Java factories