public static DbmsType dbmsTypeOf(DbmsHandlerComponent handler, Dbms dbms) {
        final String typeName = dbms.getTypeName();
        return handler.findByName(typeName).orElseThrow(() -> 
            new SpeedmentException(
                "Unable to find the database type " + typeName + 
                ". The installed types are: " + 
                handler.supportedDbmsTypes()
                    .map(DbmsType::getName)
                    .collect(joining(", "))
            )
        );
    }
Returns the {@link DbmsType} for the specified {@link Dbms}.

@param handler  the dbms handler to use
@param dbms     the dbms
@return         the type of that dbms
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/util/DatabaseUtil.java