class ScreenService extends BasicService implements OwnerAPISupport<Screen> {

	@POST
	@Path("/screens")
	@Consumes(MediaType.APPLICATION_JSON)
	@Produces(MediaType.APPLICATION_JSON)
	public Screen createScreen(Screen screen) {
		screen.setName(sanitize(screen.getName()));

		if (StringUtils.isBlank(screen.getName())) {
			throwBadRequest("Name must be supplied.");
		}

		User user = userUtil.getLoggedInDBUser(request);
		Owner owner = new Owner(user);
		owner.setContact(true);
		screen.addOwner(owner);

		screen = ScreenDAO.saveNew(screen);
		if (screen.getPlaylist() != null) {
			screen.getPlaylist().expand();
		}

		return screen;
	}

}