weka custom class in java