The holonomy algebra of immersed manifolds of codimension two