public static com.lbi.mytestapplication.rest.ressource.Post mapDomainEntityToRestResource( Post post) { com.lbi.mytestapplication.rest.ressource.Post postRsc = new com.lbi.mytestapplication.rest.ressource.Post(); postRsc.setMessage(post.getMessage()); postRsc.setQueue((post.getQueue())); postRsc.setId(post.getId()); return postRsc; }