}
private static Map<String, byte[]> b2m(final byte[] b) {
if (b == null) return null;
//System.out.println("b = " + UTF8.String(b));
final BDecoder decoder = new BDecoder(b);
final BObject bobj = decoder.parse();
if (bobj.getType() != BDecoder.BType.dictionary) return null;
final Map<String, BDecoder.BObject> map = bobj.getMap();
final Map<String, byte[]> m = new HashMap<String, byte[]>();
for (final Map.Entry<String, BDecoder.BObject> entry: map.entrySet()) {
if (entry.getValue().getType() != BDecoder.BType.string) continue;