Feedback on network setup for anomaly detection

I’m using essentially HTM.Java so I’m not referring to that document for implementation specifically.
I searched on forum and found this htm.java post which seems that the unique way to get predictions with java is the getMostProbableValue method.