@SafeVarargs
private final void bindDataSource(Binder binder, String type, Class<? extends Annotation> annotation, Class<? extends Annotation>... aliases)
{
String property = type + ".db.type";
install(installIfPropertyEquals(new MySqlDataSourceModule(type, annotation, aliases), property, "mysql"));
install(installIfPropertyEquals(new H2EmbeddedDataSourceModule(type, annotation, aliases), property, "h2"));
bindDbiToDataSource(binder, annotation);
for (Class<? extends Annotation> alias : aliases) {
bindDbiToDataSource(binder, alias);