modify RequestBuilding.addCredentials to support generic credentials