added utility method for adding RestResources