class PageService extends BasicService implements OwnerAPISupport<Page> {

	@POST
	@Path("/pages/{pageId}/copy")
	@Consumes(MediaType.APPLICATION_JSON)
	public Page copyPage(@PathParam("pageId") long pageId, Page newPage) {
		Page existingPage = getExistingPage(pageId, false);

		Page copiedPage = new Page(existingPage);
		copiedPage.setName(newPage.getName());
		copiedPage = createPage(copiedPage);

		return copiedPage;
	}

}