class ScreenService extends BasicService implements OwnerAPISupport<Screen> {

	@POST
	@Path("/screens/{id}/copy")
	@Consumes(MediaType.APPLICATION_JSON)
	public Screen copyScreen(@PathParam("id") long screenId, Screen newScreen) {
		Screen existingScreen = getExistingScreen(screenId, false);

		Screen copiedScreen = new Screen(existingScreen);
		copiedScreen.setName(newScreen.getName());
		copiedScreen = createScreen(copiedScreen);

		return copiedScreen;
	}

}