bundles/ca.uqam.tool.vivo-proxy/src_overlay/main/java/ca/uqam/tool/vivoproxy/swagger/api/impl/util/ApiServiceImplHelper.java
public static Response buildMessage(Command aCommand) throws IOException {
		com.squareup.okhttp.Response response = aCommand.getCommandResult().getOkhttpResult();
		String model = response.body().string();
		System.out.println(model);
		String newUserIris = VivoReceiverHelper.getUriResponseFromModel(model);
		ModelAPIResponse apiResp = new ModelAPIResponse();
		apiResp.setIrIValue(newUserIris);
		apiResp.setViVOMessage(" return code: " +response.code()+ " "  +response.message());
		apiResp.setApiMessage("\n" + model);
		apiResp.setCode(ApiResponseMessage.OK);
		apiResp.setType(new ApiResponseMessage(ApiResponseMessage.OK,"").getType());
		Response apiResponse = Response.ok().entity(apiResp).build();
		return apiResponse;
	}
/**
	 * Return a standard formated message
	 * @param aCommand
	 * @return
	 * @throws IOException
	 */
Return a standard formated message
@param aCommand
@return
@throws IOException
Return a standard formated message @param aCommand @return @throws IOException
public static Response buildMessage(Command aCommand) throws IOException {
		com.squareup.okhttp.Response response = aCommand.getCommandResult().getOkhttpResult();
		String model = response.body().string();
		System.out.println(model);
		String newUserIris = VivoReceiverHelper.getUriResponseFromModel(model);
		ModelAPIResponse apiResp = new ModelAPIResponse();
		apiResp.setIrIValue(newUserIris);
		apiResp.setViVOMessage(" return code: " +response.code()+ " "  +response.message());
		apiResp.setApiMessage("\n" + model);
		apiResp.setCode(ApiResponseMessage.OK);
		apiResp.setType(new ApiResponseMessage(ApiResponseMessage.OK,"").getType());
		Response apiResponse = Response.ok().entity(apiResp).build();
		return apiResponse;
	}
public static Response buildMessage ( Command aCommand ) throws IOException { com . squareup . okhttp . Response response = aCommand . getCommandResult ( ) . getOkhttpResult ( ) ; String model = response . body ( ) . string ( ) ; System . out . println ( model ) ; String newUserIris = VivoReceiverHelper . getUriResponseFromModel ( model ) ; ModelAPIResponse apiResp = new ModelAPIResponse ( ) ; apiResp . setIrIValue ( newUserIris ) ; apiResp . setViVOMessage ( " return code: " + response . code ( ) + " " + response . message ( ) ) ; apiResp . setApiMessage ( "\n" + model ) ; apiResp . setCode ( ApiResponseMessage . OK ) ; apiResp . setType ( new ApiResponseMessage ( ApiResponseMessage . OK , "" ) . getType ( ) ) ; Response apiResponse = Response . ok ( ) . entity ( apiResp ) . build ( ) ; return apiResponse ; }
Return a standard formated message
 @param aCommand
 @return
 @throws IOException
Return a standard formated message @param aCommand @return @throws IOException