IOException {
logger.info( "Saving File:" + file );
IRWAccess access = CdeEnvironment.getPluginRepositoryWriter();
if ( !access.fileExists( REPOSITORY_CDF_DD_TEMPLATES_CUSTOM ) ) {
access.createFolder( REPOSITORY_CDF_DD_TEMPLATES_CUSTOM );
}
structure = addDashboardStyleAndRendererTypeToTemplate( structure );
byte[] fileData = structure.getBytes( CharsetHelper.getEncoding() );