/**
* Connect with the specified properties and return the Connection.
*/
public Connection connectToDataSource(EISAccessor accessor, Properties properties) throws DatabaseException, ValidationException {
if ((this.connectionFactory == null) && (this.name == null)) {
this.connectionFactory = new MongoConnectionFactory();
}
if (!properties.isEmpty()) {
if (this.connectionSpec == null) {
this.connectionSpec = new MongoJCAConnectionSpec();
}