class PlaylistService extends BasicService implements OwnerAPISupport<Playlist> {

	@Override
	@DELETE
	@Path("/playlists/{playlistId}/owners/{ownerId}")
	@Produces(MediaType.APPLICATION_JSON)
	public Playlist deleteOwner(@PathParam("playlistId") long playlistId, @PathParam("ownerId") long ownerId) {
		Playlist existingPlaylist = getExistingPlaylist(playlistId, true);
		doDeleteOwner(existingPlaylist, ownerId);

		return PlaylistDAO.save(existingPlaylist);
	}

}