if ( create ) {
String result = renderer.newDashboard( filePath, debug, true, getRequest(), getResponse() );
IOUtils.write( result, getResponse().getOutputStream() );
} else if ( edit ) {
//TODO: file to path
String result = renderer.edit( "", "", filePath, debug, true, getRequest(), getResponse() );
IOUtils.write( result, getResponse().getOutputStream() );
} else if ( resource ) {
// TODO review later if there is a viable solution to making resources being
// called via cde resources rest api (pentaho/plugin/pentaho-cdf-dd/api/resources?resource=)