/*******************************************************************************
 * Copyright (c) 2014 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/

package com.codenvy.client.core.model;

import com.codenvy.client.model.ProjectProblem;

/**
 * @author Florent Benoit
 */
public class DefaultProjectProblem implements ProjectProblem {
    /**
     * @return error code
     */
    @Override
    public int getCode() {
        return 0;
    }

    /**
     * @return the problem's message
     */
    @Override
    public String getMessage() {
        return null;
    }
}

@@ -603,105 +603,939 @@
 em;%0A
-%0A/**%0A * @author Florent Benoit%0A */%0Apublic class DefaultProjectProblem implements ProjectProblem %7B
+import com.fasterxml.jackson.annotation.JsonCreator;%0Aimport com.fasterxml.jackson.annotation.JsonIgnoreProperties;%0Aimport com.fasterxml.jackson.annotation.JsonInclude;%0Aimport com.fasterxml.jackson.annotation.JsonProperty;%0A%0Aimport static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;%0A%0A/**%0A * @author Florent Benoit%0A */%0A@JsonInclude(NON_NULL)%0A@JsonIgnoreProperties(ignoreUnknown = true)%0Apublic class DefaultProjectProblem implements ProjectProblem %7B%0A%0A    /**%0A     * Error code.%0A     */%0A    private int code;%0A%0A    /**%0A     * Error message.%0A     */%0A    private String message;%0A%0A    /**%0A     * Build a new instance.%0A     * @param code the given error code%0A     * @param message the error message%0A     */%0A    @JsonCreator%0A    public DefaultProjectProblem(%0A            @JsonProperty(%22code%22) int code,%0A            @JsonProperty(%22message%22) String message) %7B%0A        this.code = code;%0A        this.message = message;%0A%0A    %7D%0A
 %0A   
@@ -1579,32 +1579,58 @@
 /%0A    @Override%0A
+    @JsonProperty(%22code%22)%0A
     public int g
@@ -1655,17 +1655,20 @@
  return 
-0
+code
 ;%0A    %7D%0A
@@ -1731,24 +1731,53 @@
   @Override%0A
+    @JsonProperty(%22message%22)%0A
     public S
@@ -1816,12 +1816,15 @@
 urn 
-null
+message
 ;%0A  

Add Jackson annotations