code: public static ObjectTypeAttributeDefinition.Builder getAttributeBuilder(String name, String xmlName,
                                                                              boolean allowNull, boolean referenceCredentialStore) {
          AttributeDefinition csAttr = referenceCredentialStore ? credentialStoreAttributeWithCapabilityReference : credentialStoreAttribute;
          return getAttributeBuilder(name, xmlName, allowNull, csAttr);
      }
docs: Get an attribute builder for a credential-reference attribute with the specified characteristics, 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 name name of attribute
  @param xmlName name of xml element
  @param allowNull {@code false} if 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