If not already created, a new <code>license</code> element with the given value will be created.
Otherwise, the existing <code>license</code> element will be returned.
@return  a new or existing instance of <code>LicenseType<ConnectorType<T>></code>
515503
public LicenseType<ConnectorType<T>> getOrCreateLicense()
   {
      Node node = childNode.getOrCreate("license");
      LicenseType<ConnectorType<T>> license = new LicenseTypeImpl<ConnectorType<T>>(this, "license", childNode, node);
      return license;
   }
536891
public ElementType<AnnotationType<T>> getOrCreateElement()
   {
      List<Node> nodeList = childNode.get("element");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new ElementTypeImpl<AnnotationType<T>>(this, "element", childNode, nodeList.get(0));
      }
      return createElement();
   }
1043320
@SuppressWarnings("unchecked")
    public static <T> Id<T> newId(final Class<T> type) {
        return (Id<T>) newId((Type) type);
    }
691304
public OrderingType<WebFragmentType<T>> getOrCreateOrdering()
   {
      List<Node> nodeList = childNode.get("ordering");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new OrderingTypeImpl<WebFragmentType<T>>(this, "ordering", childNode, nodeList.get(0));
      }
      return createOrdering();
   }
1218250
public UicomponentAttributeType<UicomponentAttributeType<T>> getOrCreateAttribute()
   {
      List<Node> nodeList = childNode.get("attribute");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new UicomponentAttributeTypeImpl<UicomponentAttributeType<T>>(this, "attribute", childNode, nodeList.get(0));
      }
      return createAttribute();
   }
1168305
public SupportsType<PortletType<T>> getOrCreateSupports()
   {
      List<Node> nodeList = childNode.get("supports");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new SupportsTypeImpl<PortletType<T>>(this, "supports", childNode, nodeList.get(0));
      }
      return createSupports();
   }
312509
public Evse createEvse(Long chargingStationTypeId, Evse evse) throws ResourceAlreadyExistsException {
        ChargingStationType chargingStationType = chargingStationTypeRepository.findOne(chargingStationTypeId);

        if (getEvseByIdentifier(chargingStationType, evse.getIdentifier()) != null) {
            throw new ResourceAlreadyExistsException(String.format("Evse with identifier '%s' already exists.", evse.getIdentifier()));
        }

        chargingStationType.getEvses().add(evse);
        chargingStationType = chargingStationTypeRepository.createOrUpdate(chargingStationType);

        return getEvseByIdentifier(chargingStationType, evse.getIdentifier());
    }
948285
public static JusFragment newInstance() {
		JusFragment fragment = new JusFragment();
		Bundle args = new Bundle();
		fragment.setArguments(args);
		return fragment;
	}
170121
public ConstraintType<ParameterType<T>> getOrCreateConstraint()
   {
      List<Node> nodeList = childNode.get("constraint");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new ConstraintTypeImpl<ParameterType<T>>(this, "constraint", childNode, nodeList.get(0));
      }
      return createConstraint();
   }
1074651
@Override
	public CProduct create(long CProductId) {
		CProduct cProduct = new CProductImpl();

		cProduct.setNew(true);
		cProduct.setPrimaryKey(CProductId);

		String uuid = PortalUUIDUtil.generate();

		cProduct.setUuid(uuid);

		cProduct.setCompanyId(companyProvider.getCompanyId());

		return cProduct;
	}
769969
public TaglibType<JspConfigType<T>> getOrCreateTaglib()
   {
      List<Node> nodeList = childNode.get("taglib");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new TaglibTypeImpl<JspConfigType<T>>(this, "taglib", childNode, nodeList.get(0));
      }
      return createTaglib();
   }
933038
private static LicensesDialogFragment newInstance(final Notices notices,
                                                      final boolean showFullLicenseText,
                                                      final boolean includeOwnLicense,
                                                      final String noticeStyle,
                                                      final int themeResourceId,
                                                      final int dividerColor) {
        final LicensesDialogFragment licensesDialogFragment = new LicensesDialogFragment();
        final Bundle args = new Bundle();
        args.putParcelable(ARGUMENT_NOTICES, notices);
        args.putBoolean(ARGUMENT_FULL_LICENSE_TEXT, showFullLicenseText);
        args.putBoolean(ARGUMENT_INCLUDE_OWN_LICENSE, includeOwnLicense);
        args.putString(ARGUMENT_NOTICE_STYLE, noticeStyle);
        args.putInt(ARGUMENT_THEME_XML_ID, themeResourceId);
        args.putInt(ARGUMENT_DIVIDER_COLOR, dividerColor);
        licensesDialogFragment.setArguments(args);
        return licensesDialogFragment;
    }
1258732
public Bean<T> create() {
        if (!passivationCapable) {
            return new ImmutableBean<T>(beanClass, name, qualifiers, scope, stereotypes, types, alternative, nullable, injectionPoints, beanLifecycle, toString);
        } else {
            return new ImmutablePassivationCapableBean<T>(id, beanClass, name, qualifiers, scope, stereotypes, types, alternative, nullable, injectionPoints, beanLifecycle, toString);
        }
    }
470675
public DbLicense getLicense(final String name) {
        final DbLicense license = repoHandler.getLicense(name);

        if (license == null) {
            throw new WebApplicationException(Response.status(Response.Status.NOT_FOUND)
                    .entity("License " + name + " does not exist.").build());
        }

        return license;
    }
66625
def custom_licenses(self):
        
        buf = (ctypes.c_char * self.MAX_BUF_SIZE)()
        result = self._dll.JLINK_EMU_GetLicenses(buf, self.MAX_BUF_SIZE)
        if result < 0:
            raise errors.JLinkException(result)
        return ctypes.string_at(buf).decode()
766714
public PreferenceType<PortletPreferencesType<T>> getOrCreatePreference()
   {
      List<Node> nodeList = childNode.get("preference");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new PreferenceTypeImpl<PortletPreferencesType<T>>(this, "preference", childNode, nodeList.get(0));
      }
      return createPreference();
   }
928455
protected Component newAddComponent() {
        return new PaletteButton("addButton") {
            private static final long serialVersionUID = 1L;

            @Override
            protected void onComponentTag(ComponentTag tag) {
                super.onComponentTag(tag);
                tag.getAttributes().put("onclick", getAddOnClickJS());
            }
        };
    }