code: public static ObjectTypeAttributeDefinition.Builder getAttributeBuilder(boolean allowNull, boolean referenceCredentialStore) {
          AttributeDefinition csAttr = referenceCredentialStore ? credentialStoreAttributeWithCapabilityReference : credentialStoreAttribute;
          return getAttributeBuilder(CREDENTIAL_REFERENCE, CREDENTIAL_REFERENCE, allowNull, csAttr);
      }
docs: Gets an attribute builder for a credential-reference attribute with the standard {@code credential-reference}
  attribute name, a configurable setting as to whether the attribute is required, and optionally configured to
  {@link org.jboss.as.controller.AbstractAttributeDefinitionBuilder#setCapabilityReference(String) register a requirement}
  for a {@link #CREDENTIAL_STORE_CAPABILITY credential store capability}.
  If a requirement is registered, the dependent capability will be the single capability registered by the
  resource that uses this attribute definition. The resource must expose one and only one capability in order
  to use this facility.
  
  @param allowNull whether the attribute is required
  @param referenceCredentialStore {@code true} if the {@code store} field in the
  attribute should register a requirement for a credential store capability.
  @return an {@link ObjectTypeAttributeDefinition.Builder} which can be used to build an attribute definition