latest changes to get cfapattern working from java