Generic resource builder