oil generate controller