The current API doesn't support adding multiple custom identity stores to a configuration in the same way as the File, JPA and LDAP identity stores.
Example:
IdentityConfigurationBuilder builder = new IdentityConfigurationBuilder();
builder.named("sample1").stores().file().jpa.ldap()... //supported
builder.named("sample2").stores().add(...).add(...) // not supported