@Transaction(context = INewsContext.class)
 @Override
 public void upload(
     final ComponentParameter cp,
     final IMultipartFile multipartFile,
     final Map<String, Object> variables)
     throws Exception {
   final News news = NewsUtils.getNews(cp);
   newsContext
       .getAttachmentService()
       .insert(
           news.getId(),
           cp.getLoginId(),
           ArrayUtils.asList(new AttachmentFile(multipartFile.getFile())));
 }
 public Collection<String> getConnections() {
   return new HashSet<>(ArrayUtils.asList(StringUtils.split(getProperty("connections"))));
 }