20140814 fix a bug in rest/Create about foreignKey, which should be a common variable