public SourceType getTypeWritable() {
   return SourceType.values()[typeWritable.get()];
 }
 public void setTypeWritable(SourceType type) {
   typeWritable.set((byte) type.ordinal());
 }