/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package org.supertribe;

import javax.ejb.Lock;
import javax.ejb.Singleton;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import java.util.Arrays;
import java.util.List;

import static javax.ejb.LockType.READ;

@Path("/phone")
@Singleton
@Lock(READ)
public class PhoneService {

    @GET
    @Path("list")
    @Produces(MediaType.APPLICATION_JSON)
    public List<Phone> getPhones() {

        return Arrays.asList(
                new Phone(0, "", "motorola-xoom-with-wi-fi", "Motorola XOOM\u2122 with Wi-Fi", "The Next, Next Generation\r\n\r\nExperience the future with Motorola XOOM with Wi-Fi, the world's first tablet powered by Android 3.0 (Honeycomb)."),

                new Phone(1, "", "motorola-xoom", "MOTOROLA XOOM\u2122", "The Next, Next Generation\n\nExperience the future with MOTOROLA XOOM, the world's first tablet powered by Android 3.0 (Honeycomb)."),

                new Phone(8, "", "samsung-galaxy-tab", "Samsung Galaxy Tab\u2122", "Feel Free to Tab\u2122. The Samsung Galaxy Tab\u2122 brings you an ultra-mobile entertainment experience through its 7\u201d display, high-power processor and Adobe\u00ae Flash\u00ae Player compatibility."),

                new Phone(11, "Verizon", "droid-pro-by-motorola", "DROID\u2122 Pro by Motorola", "The next generation of DOES."),

                new Phone(18, "", "t-mobile-g2", "T-Mobile G2", "The T-Mobile G2 with Google is the first smartphone built for 4G speeds on T-Mobile's new network. Get the information you need, faster than you ever thought possible.")

        );

    }


}

@@ -1358,22 +1358,20 @@
 ola XOOM
-%5Cu2122
+(tm)
  with Wi
@@ -1592,22 +1592,20 @@
 OLA XOOM
-%5Cu2122
+(tm)
 %22, %22The 
@@ -1810,22 +1810,20 @@
 laxy Tab
-%5Cu2122
+(tm)
 %22, %22Feel
@@ -1834,22 +1834,20 @@
 e to Tab
-%5Cu2122
+(tm)
 . The Sa
@@ -1862,22 +1862,20 @@
 laxy Tab
-%5Cu2122
+(tm)
  brings 
@@ -2099,14 +2099,12 @@
 ROID
-%5Cu2122
+(tm)
  Pro

Use non-unicode chars for now