public String getUsername() {
        return username;
    }
Returns the username used to connect to the database. In some cases,
a username is not needed so this method will return null.

@return the username used to connect to the database.
xmppserver/src/main/java/org/jivesoftware/database/DefaultConnectionProvider.java