public static void saveEntityTriggerJob() {
final City city = new City();
city.name = "cityNameJobLater";
city.save();
p = new Job() {
public void doJob() throws Exception {
City mycity = City.findById(city.id);
resultName = mycity.name;
}
}.afterRequest();