Charge transport in double-barrier and magnesiumdiboride Josephson junctions door