I was working on mule 3.5.1, when I upgrade to mule 3.6 version, getting compile time error for following class:

```
import org.mule.module.jersey.MuleResponseWriter;
import com.sun.jersey.spi.container.ContainerResponse;

public class GLExportTransformer extends AbstractMessageTransformer {

    public List<GLExport> methodType(@Payload MuleResponseWriter content){
        List<GLExport> glExportList = (List<GLExport>) content;
        System.out.println("Java payload is -->"+glExportList.getClass());
        return glExportList ;
    } 

    @Override
    public Object transformMessage(MuleMessage message, String outputEncoding)throws TransformerException {
        ContainerResponse cr = (ContainerResponse) message.getInvocationProperty("jersey_response");
        List<GLExport> res = (List<GLExport>)cr.getResponse().getEntity();
        System.out.println("Response from QB is -->"+res);
        return res;   
    }

}

<custom-transformer name="StringToNameString" class="com.trinet.qb.utils.GLExportTransformer" doc:name="GL Export Transformer"/> 

```

Compile time error:

```
The type org.mule.module.jersey.MuleResponseWriter is not visible

The import com.sun.jersey cannot be resolved

```

How do I resolve this?

In my Anypoint Studio shows Mule3.6 uses all jersey related jar uses 2.11 version of jar files. Using Java 1.7 version.

**EDIT:**

Here is my rest component(GLExportService):

```
@POST
@Path("/post")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public List<GLExport> postOperation(@Payload String content) throws ParseException {
    System.out.println("Content from Reporting page-->\n\n"+content+"\n\n");
    JSONParser jsonParser = new JSONParser();
    Object jsonObjectInstance =null;
    try {
        jsonObjectInstance = jsonParser.parse(new StringReader(content));
    } catch (ParseException e) {
        System.out.println(e.getLocalizedMessage());
    }
    // parse json and assign to dto as glExportList
    return glExportList;

```

Here is my mule flows:

```
 <http:inbound-endpoint exchange-pattern="request-response" host="${hostname}" port="${glport}" path="QBJournalExport/QBGLRest" doc:name="HTTP"/>
        <jersey:resources doc:name="REST"> 
            <component class="com.qb.rest.GLExportService"/>
        </jersey:resources> 
<set-session-variable variableName="accessToken" value="#[payload.get(0).get('ACCESS_TOKEN')]" doc:name="Access token"/>
<set-session-variable variableName="accessTokenSecret" value="#[payload.get(0).get('ACCESS_TOKEN_SECRET')]" doc:name="Access Secret"/>
<set-session-variable variableName="realmId" value="#[payload.get(0).get('ACCT_SYSTEM_COMPANY_ID')]" doc:name="Company ID"/>
<set-session-variable variableName="quickbooksClient" value="#[com.qb.utils.QuickbooksUtils.getQuickbooksClient(sessionVars['accessToken'],sessionVars['accessTokenSecret'],'${consumerKey}','${consumerSecret}','${appToken}',sessionVars['realmId'])]" doc:name="QB Client"/>
<custom-transformer name="StringToNameString" class="com.qb.utils.GLExportTransformer" doc:name="GL Export Transformer"/>
<set-payload value="#[com.qb.utils.CreateJournalEntry.createJournalEntry(payload,sessionVars['accessToken'],sessionVars['accessTokenSecret'],'${consumerKey}','${consumerSecret}','${appToken}', sessionVars['realmId'])]" doc:name="Create Journal Entry"/>

```