public static int getCustomCreateComponentCount(final IContainer container) {
    final int[] result = new int[1];
    container.accept(new ComponentVisitor() {
      @Override
      public boolean visit(IComponent c) {
        if (c.isCustomCreate()) {
          result[0]++;
        }
        return true;
      }
    });
    return result[0];
  }
public static int getCustomCreateComponentCount(final IContainer container)