sentence: some rulers were also given precedence amongst others such as the susuhunan of surakarta and the sultan of yogyakarta ( direct successors to the old mataram sultanate , that all regencies in java belonged to ) , which were recognized through their vorstenlanden kingdoms giving them a degree of autonomy .