private void generateBorder(final LwContainer container, final GeneratorAdapter generator, final int componentLocal) {
      final BorderType borderType = container.getBorderType();
      final StringDescriptor borderTitle = container.getBorderTitle();
      final String borderFactoryMethodName = borderType.getBorderFactoryMethodName();

      final boolean borderNone = borderType.equals(BorderType.NONE);
      if (!borderNone || borderTitle != null) {
        // object to invoke setBorder
        generator.loadLocal(componentLocal);

        if (!borderNone) {
          generateBorderFactoryMethod(container, generator, borderType, borderFactoryMethodName);
        }
        else {
          generator.push((String) null);
        }
        pushBorderProperties(container, generator, borderTitle, componentLocal);

        Type borderFactoryType = borderFactoryType(container, borderTitle);

        generator.invokeStatic(borderFactoryType, ourCreateTitledBorderMethod);

        // set border
        generator.invokeVirtual(Type.getType(JComponent.class),
                                Method.getMethod("void setBorder(javax.swing.border.Border)"));
      }
    }
private void generateBorder(final LwContainer container, final GeneratorAdapter generator, final int componentLocal)