Moving the API Generator to plain Java