* @param prefix prefix of parameter where parameter can be found.
* @return transcoding params model object.
* @throws ConverterException
*/
private TranscodingParams getTranscodingParams() throws ConverterException {
TranscodingParams transcodingParameters = new TranscodingParams();
if (contentType.startsWith("audio")) {
transcodingParameters.setAudio(getAudio());
} else if (contentType.startsWith("image")) {
transcodingParameters.setImage(getImage());
} else if (contentType.startsWith("video")) {
transcodingParameters.setVideo(getVideo());
} else if (contentType.startsWith("text")) {
transcodingParameters.setText(getText());
}
return transcodingParameters;
}