/** * Deletes the template and its resources. * * @param templateId the primary key of the template to be deleted */ public static void deleteTemplate(long templateId) throws RemoteException { try { DDMTemplateServiceUtil.deleteTemplate(templateId); } catch (Exception e) { _log.error(e, e); throw new RemoteException(e.getMessage()); } }