code: public static Link getLink(final String id, final String name, final String resource, final FontAwesome icon,
              final String targetOpen, final String style) {
  
          final Link link = new Link(name, new ExternalResource(resource));
          link.setId(id);
          link.setIcon(icon);
          link.setDescription(name);
  
          link.setTargetName(targetOpen);
          if (style != null) {
              link.setStyleName(style);
          }
  
          return link;
  
      }
docs: Method to create a link.
  
  @param id
  of the link
  @param name
  of the link
  @param resource
  path of the link
  @param icon
  of the link
  @param targetOpen
  specify how the link should be open (f. e. new windows =
  _blank)
  @param style
  chosen style of the link. Might be {@code null} if no style
  should be used
  @return a link UI component