code: protected <C extends BaseUIComponent> C createCell(BaseComponent parent, Object value, String prefix, String style,
                                                         String width, Class<C> clazz) {
          C container = null;
  
          try {
              container = clazz.newInstance();
              container.setParent(parent);
              container.setStyles(cellStyle);
  
              if (width != null) {
                  container.setWidth(width);
              }
  
              if (value instanceof BaseComponent) {
                  ((BaseComponent) value).setParent(container);
              } else if (value != null) {
                  createLabel(container, value, prefix, style);
              }
  
          } catch (Exception e) {}
          ;
  
          return container;
      }
docs: Creates a component containing a label with the specified parameters.
  
  @param <C> Class of created component.
  @param parent BaseComponent that will be the parent of the created component.
  @param value Value to be used as label text.
  @param prefix Value to be used as a prefix for the label text.
  @param style Style to be applied to the label.
  @param width Width of the created component.
  @param clazz The class of the component to be created.
  @return The newly created component.