*/
public static void main(String[] args) throws AccountCreationException, EntityFormatException {
// choose the storage you want to use
//StorageProviderRegistry providerRegistry = new JcrStorageProviderRegistry();
StorageProviderRegistry providerRegistry = new MemoryStorageProviderRegistry();
final AccountManagement accountManagement = (AccountManagement) providerRegistry
.retrieve(AccountManagement.class);
if (!accountManagement.verifyAccountExists(EntityImpl.parse("user1@vysper.org"))) {
accountManagement.addUser("user1@vysper.org", "password1");
}